diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-08-05 15:21:36 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-08-28 17:06:50 +0100 |
commit | da67a0ae3462f6c6447ed841a9ec514077244b02 (patch) | |
tree | 83c6ede13bdfa499ce877a4515d54994d769f95a /ssl/ssl.h | |
parent | 9a9b0c0401cae443f115ff19921d347b20aa396b (diff) |
Revision of custom extension code.
Move custom extension structures from SSL_CTX to CERT structure.
This change means the form can be revised in future without binary
compatibility issues. Also since CERT is part of SSL structures
so per-SSL custom extensions could be supported in future as well as
per SSL_CTX.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
(cherry picked from commit b83294fe3022b9d5d525ccdcfeb53d39c25b05bd)
Conflicts:
ssl/ssl.h
ssl/ssl_cert.c
ssl/ssl_locl.h
Diffstat (limited to 'ssl/ssl.h')
-rw-r--r-- | ssl/ssl.h | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -421,20 +421,6 @@ typedef int (*custom_srv_ext_second_cb_fn)(SSL *s, unsigned short ext_type, const unsigned char **out, unsigned short *outlen, int *al, void *arg); -typedef struct { - unsigned short ext_type; - custom_cli_ext_first_cb_fn fn1; - custom_cli_ext_second_cb_fn fn2; - void *arg; -} custom_cli_ext_record; - -typedef struct { - unsigned short ext_type; - custom_srv_ext_first_cb_fn fn1; - custom_srv_ext_second_cb_fn fn2; - void *arg; -} custom_srv_ext_record; - #endif #ifndef OPENSSL_NO_SSL_INTERN @@ -1153,12 +1139,6 @@ struct ssl_ctx_st unsigned char *tlsext_ellipticcurvelist; # endif /* OPENSSL_NO_EC */ #endif - - /* Arrays containing the callbacks for custom TLS Extensions. */ - custom_cli_ext_record *custom_cli_ext_records; - size_t custom_cli_ext_records_count; - custom_srv_ext_record *custom_srv_ext_records; - size_t custom_srv_ext_records_count; }; #endif |