aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-04-21 15:48:02 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-04-22 15:00:53 +0100
commit98c9ce2f55609d00a06c2106df03a5a7e9dbfa75 (patch)
tree95c18933603dd8059c2442c279819d551464946c /include
parentb95de5ecdea29f0ac658b6ea86d0cd2d77efcb13 (diff)
downloadopenssl-98c9ce2f55609d00a06c2106df03a5a7e9dbfa75.tar.gz
SSL_CIPHER lookup functions.
Add tables to convert between SSL_CIPHER fields and indices for ciphers and MACs. Reorganise ssl_ciph.c to use tables to lookup values and load them. New functions SSL_CIPHER_get_cipher_nid and SSL_CIPHER_get_digest_nid. Add documentation. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ssl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index a24f7421d7..ecd6c696e9 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -1789,6 +1789,8 @@ __owur int SSL_COMP_add_compression_method(int id, void *cm);
# endif
const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);
+int SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);
+int SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);
/* TLS extensions functions */
__owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);