summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-02-22 15:29:40 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-02-22 15:29:40 +0000
commitf7d4efd53828f67204db295128654093161cf733 (patch)
treec49dca6efbf0c7f6082c87f422a0e80e67cee803
parent044d6e5e5ef375969e4b081d2bf38893f6bf957d (diff)
There is not much point constructing an SSL_CIPHER, then calling
ssl3_cipher_get_value() to get the cipher suite value that we just put in the struct - use the cipher suite value directly.
-rw-r--r--lib/libssl/src/ssl/ssl_lib.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libssl/src/ssl/ssl_lib.c b/lib/libssl/src/ssl/ssl_lib.c
index 32feaa57e9e..58835931d24 100644
--- a/lib/libssl/src/ssl/ssl_lib.c
+++ b/lib/libssl/src/ssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.99 2015/02/22 15:19:56 jsing Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.100 2015/02/22 15:29:39 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1406,12 +1406,8 @@ ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, unsigned char *p)
* If p == q, no ciphers and caller indicates an error. Otherwise
* add SCSV if not renegotiating.
*/
- if (p != q && !s->renegotiate) {
- static SSL_CIPHER scsv = {
- 0, NULL, SSL3_CK_SCSV, 0, 0, 0, 0, 0, 0, 0, 0, 0
- };
- s2n(ssl3_cipher_get_value(&scsv), p);
- }
+ if (p != q && !s->renegotiate)
+ s2n(SSL3_CK_SCSV & SSL3_CK_VALUE_MASK, p);
return (p - q);
}