X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=include%2Fopenssl%2Ftls1.h;h=f16785663bcaf9258a3277824cfd14b8f85abe53;hp=ed0380f84ab206ab070377bbf498331a4aeb72ca;hb=b38ede8043439d99a3c6c174f17b91875cce66ac;hpb=e454f3add638fda5c2aa32cd368c8929c0b1eb09 diff --git a/include/openssl/tls1.h b/include/openssl/tls1.h index ed0380f84a..f16785663b 100644 --- a/include/openssl/tls1.h +++ b/include/openssl/tls1.h @@ -232,6 +232,19 @@ __owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen, const unsigned char *context, size_t contextlen, int use_context); +/* + * SSL_export_keying_material_early exports a value derived from the + * early exporter master secret, as specified in + * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes + * |olen| bytes to |out| given a label and optional context. It + * returns 1 on success and 0 otherwise. + */ +__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out, + size_t olen, const char *label, + size_t llen, + const unsigned char *context, + size_t contextlen); + int SSL_get_peer_signature_type_nid(const SSL *s, int *pnid); int SSL_get_sigalgs(SSL *s, int idx,