diff options
author | David Benjamin <davidben@google.com> | 2017-09-07 18:53:05 -0400 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2017-09-08 13:58:59 -0500 |
commit | f1b97da1fd90cf3935eafedc8df0d0165cb75f2f (patch) | |
tree | 6db3aa66ae0837c2e2a0dec5c065ef021962e384 /include | |
parent | f90486f4def6c20e3021405068b69533d164244f (diff) |
Introduce named constants for the ClientHello callback.
It is otherwise unclear what all the magic numbers mean.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/4349)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 45d0083c58..9aac454c6c 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1699,6 +1699,11 @@ __owur char *SSL_get_srp_userinfo(SSL *s); /* * ClientHello callback and helpers. */ + +# define SSL_CLIENT_HELLO_SUCCESS 1 +# define SSL_CLIENT_HELLO_ERROR 0 +# define SSL_CLIENT_HELLO_RETRY (-1) + typedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg); void SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb, void *arg); |