X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fssl_locl.h;h=4a12aec5fcb369ddc4d5b059d888847a0b79edf2;hp=7b28886e6b67bb94051f94ff097c4151ac928cf6;hb=b83294fe3022b9d5d525ccdcfeb53d39c25b05bd;hpb=06f5d12f511ad81a05e82b3473832a1d1d560172 diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 7b28886e6b..4a12aec5fc 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -532,6 +532,20 @@ typedef struct cert_pkey_st #define SSL_CERT_FLAGS_CHECK_TLS_STRICT \ (SSL_CERT_FLAG_SUITEB_128_LOS|SSL_CERT_FLAG_TLS_STRICT) +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; + typedef struct cert_st { /* Current active set */ @@ -628,6 +642,12 @@ typedef struct cert_st unsigned char *ciphers_raw; size_t ciphers_rawlen; + /* 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; + /* Security callback */ int (*sec_cb)(SSL *s, SSL_CTX *ctx, int op, int bits, int nid, void *other, void *ex); /* Security level */