summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2017-08-09 22:24:25 +0000
committerjsing <>2017-08-09 22:24:25 +0000
commitcdb6bcf3476378691e071d8d8f473d8b01283221 (patch)
tree1411cd5e4c68c90bc574d03deeebaaf9d6145b4d /src/lib/libssl/ssl_locl.h
parentb172f94f665e55aa2da726f07d8a751a8f88aed8 (diff)
downloadopenbsd-cdb6bcf3476378691e071d8d8f473d8b01283221.tar.gz
openbsd-cdb6bcf3476378691e071d8d8f473d8b01283221.tar.bz2
openbsd-cdb6bcf3476378691e071d8d8f473d8b01283221.zip
Pull out the code that identifies if we have an ECC cipher in the cipher
list or if we are negotiating an ECC cipher in the handshake. This dedups some of the existing code and will make the EC extension rewrites easier. ok doug@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 0d48920471..f98ce681a2 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.182 2017/07/24 17:10:31 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.183 2017/08/09 22:24:25 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1127,6 +1127,7 @@ DH *ssl_get_auto_dh(SSL *s);
1127int ssl_cert_type(X509 *x, EVP_PKEY *pkey); 1127int ssl_cert_type(X509 *x, EVP_PKEY *pkey);
1128void ssl_set_cert_masks(CERT *c, const SSL_CIPHER *cipher); 1128void ssl_set_cert_masks(CERT *c, const SSL_CIPHER *cipher);
1129STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s); 1129STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s);
1130int ssl_has_ecc_ciphers(SSL *s);
1130int ssl_verify_alarm_type(long type); 1131int ssl_verify_alarm_type(long type);
1131void ssl_load_ciphers(void); 1132void ssl_load_ciphers(void);
1132 1133
@@ -1312,6 +1313,7 @@ int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen,
1312int tls1_alert_code(int code); 1313int tls1_alert_code(int code);
1313int ssl_ok(SSL *s); 1314int ssl_ok(SSL *s);
1314 1315
1316int ssl_using_ecc_cipher(SSL *s);
1315int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s); 1317int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s);
1316 1318
1317int tls1_set_groups(uint16_t **out_group_ids, size_t *out_group_ids_len, 1319int tls1_set_groups(uint16_t **out_group_ids, size_t *out_group_ids_len,