Mercurial > hg > nginx-quic
annotate src/os/unix/ngx_setproctitle.h @ 6817:e75e854657ba
SSL: $ssl_curves (ticket #1088).
The variable contains a list of curves as supported by the client.
Known curves are listed by their names, unknown ones are shown
in hex, e.g., "0x001d:prime256v1:secp521r1:secp384r1".
Note that OpenSSL uses session data for SSL_get1_curves(), and
it doesn't store full list of curves supported by the client when
serializing a session. As a result $ssl_curves is only available
for new sessions (and will be empty for reused ones).
The variable is only meaningful when using OpenSSL 1.0.2 and above.
With older versions the variable is empty.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Dec 2016 22:23:23 +0300 |
parents | 16013b71feed |
children |
rev | line source |
---|---|
509 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4412 | 4 * Copyright (C) Nginx, Inc. |
509 | 5 */ |
6 | |
7 | |
8 #ifndef _NGX_SETPROCTITLE_H_INCLUDED_ | |
9 #define _NGX_SETPROCTITLE_H_INCLUDED_ | |
10 | |
11 | |
12 #if (NGX_HAVE_SETPROCTITLE) | |
13 | |
14 /* FreeBSD, NetBSD, OpenBSD */ | |
15 | |
5826
16013b71feed
Added ngx_init_setproctitle() return code check.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
16 #define ngx_init_setproctitle(log) NGX_OK |
3285 | 17 #define ngx_setproctitle(title) setproctitle("%s", title) |
509 | 18 |
19 | |
515 | 20 #else /* !NGX_HAVE_SETPROCTITLE */ |
509 | 21 |
515 | 22 #if !defined NGX_SETPROCTITLE_USES_ENV |
509 | 23 |
24 #if (NGX_SOLARIS) | |
25 | |
515 | 26 #define NGX_SETPROCTITLE_USES_ENV 1 |
509 | 27 #define NGX_SETPROCTITLE_PAD ' ' |
28 | |
29 ngx_int_t ngx_init_setproctitle(ngx_log_t *log); | |
30 void ngx_setproctitle(char *title); | |
31 | |
515 | 32 #elif (NGX_LINUX) || (NGX_DARWIN) |
509 | 33 |
515 | 34 #define NGX_SETPROCTITLE_USES_ENV 1 |
35 #define NGX_SETPROCTITLE_PAD '\0' | |
36 | |
37 ngx_int_t ngx_init_setproctitle(ngx_log_t *log); | |
38 void ngx_setproctitle(char *title); | |
39 | |
40 #else | |
509 | 41 |
5826
16013b71feed
Added ngx_init_setproctitle() return code check.
Maxim Dounin <mdounin@mdounin.ru>
parents:
4412
diff
changeset
|
42 #define ngx_init_setproctitle(log) NGX_OK |
509 | 43 #define ngx_setproctitle(title) |
44 | |
515 | 45 #endif /* OSes */ |
46 | |
47 #endif /* NGX_SETPROCTITLE_USES_ENV */ | |
48 | |
49 #endif /* NGX_HAVE_SETPROCTITLE */ | |
509 | 50 |
51 | |
52 #endif /* _NGX_SETPROCTITLE_H_INCLUDED_ */ |