summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2014-09-30 15:40:09 +0000
committerjsing <>2014-09-30 15:40:09 +0000
commit4196588ba36e0ba5fa0fcb814fd943e5e3e60b62 (patch)
treed873b0b07130bc5a612941a794bb70a5fe3fa790 /src/lib/libssl/ssl_locl.h
parent1941d182bb9d2e71dc7619fd201822ed48b85d33 (diff)
downloadopenbsd-4196588ba36e0ba5fa0fcb814fd943e5e3e60b62.tar.gz
openbsd-4196588ba36e0ba5fa0fcb814fd943e5e3e60b62.tar.bz2
openbsd-4196588ba36e0ba5fa0fcb814fd943e5e3e60b62.zip
Clean up EC cipher handling in ssl3_choose_cipher().
The existing code reaches around into various internals of EC, which it should not know anything about. Replace this with a set of functions that that can correctly extract the necessary details and handle the comparisions. Based on a commit to OpenSSL, with some inspiration from boringssl. ok miod@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 3eee18cbd6..8ec4c69d5b 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.69 2014/09/27 11:01:06 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.70 2014/09/30 15:40:09 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 *
@@ -839,6 +839,9 @@ long ssl_get_algorithm2(SSL *s);
839int tls1_process_sigalgs(SSL *s, const unsigned char *data, int dsize); 839int tls1_process_sigalgs(SSL *s, const unsigned char *data, int dsize);
840int tls12_get_req_sig_algs(SSL *s, unsigned char *p); 840int tls12_get_req_sig_algs(SSL *s, unsigned char *p);
841 841
842int tls1_check_ec_server_key(SSL *s);
843int tls1_check_ec_tmp_key(SSL *s);
844
842int ssl_add_clienthello_use_srtp_ext(SSL *s, unsigned char *p, 845int ssl_add_clienthello_use_srtp_ext(SSL *s, unsigned char *p,
843 int *len, int maxlen); 846 int *len, int maxlen);
844int ssl_parse_clienthello_use_srtp_ext(SSL *s, unsigned char *d, 847int ssl_parse_clienthello_use_srtp_ext(SSL *s, unsigned char *d,