summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2016-11-05 08:26:37 +0000
committerjsing <>2016-11-05 08:26:37 +0000
commit9fa2112db3b5977fa473ce68fa02199114a3b870 (patch)
treef18e5a0a899b59b54269ba0efb72acd8d5566f6f /src/lib/libssl/ssl_locl.h
parent8e601af590fe4daecd1a7d96cddb851fc0118296 (diff)
downloadopenbsd-9fa2112db3b5977fa473ce68fa02199114a3b870.tar.gz
openbsd-9fa2112db3b5977fa473ce68fa02199114a3b870.tar.bz2
openbsd-9fa2112db3b5977fa473ce68fa02199114a3b870.zip
Convert ssl3_get_server_kex_ecdhe() to CBS, simplifying tls1_check_curve()
in the process. This also fixes a long standing bug where tls1_ec_curve_id2nid() is called with only one byte of the curve ID. ok beck@ miod@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 1b3838a33f..4386f0f7e5 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.134 2016/11/04 19:11:43 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.135 2016/11/05 08:26:36 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 *
@@ -772,9 +772,9 @@ int ssl_ok(SSL *s);
772 772
773int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s); 773int ssl_check_srvr_ecc_cert_and_alg(X509 *x, SSL *s);
774 774
775int tls1_ec_curve_id2nid(uint16_t curve_id); 775int tls1_ec_curve_id2nid(const uint16_t curve_id);
776uint16_t tls1_ec_nid2curve_id(int nid); 776uint16_t tls1_ec_nid2curve_id(const int nid);
777int tls1_check_curve(SSL *s, const unsigned char *p, size_t len); 777int tls1_check_curve(SSL *s, const uint16_t curve_id);
778int tls1_get_shared_curve(SSL *s); 778int tls1_get_shared_curve(SSL *s);
779 779
780unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p, 780unsigned char *ssl_add_clienthello_tlsext(SSL *s, unsigned char *p,