diff options
author | jsing <> | 2018-08-19 15:38:03 +0000 |
---|---|---|
committer | jsing <> | 2018-08-19 15:38:03 +0000 |
commit | 20ae7f1462fc960cd8c12d1f0c14465997d0dc2a (patch) | |
tree | 51b241a94a4954d6e015ae2a61f04f2bc963f114 /src/lib/libssl/ssl_clnt.c | |
parent | 4b5d8468f24e8400e8b6fe681a7db5754fd21bab (diff) | |
download | openbsd-20ae7f1462fc960cd8c12d1f0c14465997d0dc2a.tar.gz openbsd-20ae7f1462fc960cd8c12d1f0c14465997d0dc2a.tar.bz2 openbsd-20ae7f1462fc960cd8c12d1f0c14465997d0dc2a.zip |
Rename and collapse tls12_get_sigandhash_cbb().
Now that all callers of tls12_get_sigandhash() have been converted to CBB,
collapse tls12_get_sigandhash() and tls12_get_sigandhash_cbb() into a
single function. Rename it to tls12_gethashandsig() to be representative
of the actual order of the sigalgs parameters, and perform some other
clean up.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_clnt.c')
-rw-r--r-- | src/lib/libssl/ssl_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c index fd78a8e8a5..b026aaaee2 100644 --- a/src/lib/libssl/ssl_clnt.c +++ b/src/lib/libssl/ssl_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_clnt.c,v 1.31 2018/08/17 16:28:21 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_clnt.c,v 1.32 2018/08/19 15:38:03 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 | * |
@@ -2416,7 +2416,7 @@ ssl3_send_client_verify(SSL *s) | |||
2416 | &hdata); | 2416 | &hdata); |
2417 | md = s->cert->key->digest; | 2417 | md = s->cert->key->digest; |
2418 | if (hdatalen <= 0 || | 2418 | if (hdatalen <= 0 || |
2419 | !tls12_get_sigandhash_cbb(&cert_verify, pkey, md)) { | 2419 | !tls12_get_hashandsig(&cert_verify, pkey, md)) { |
2420 | SSLerror(s, ERR_R_INTERNAL_ERROR); | 2420 | SSLerror(s, ERR_R_INTERNAL_ERROR); |
2421 | goto err; | 2421 | goto err; |
2422 | } | 2422 | } |