diff options
| author | jsing <> | 2018-08-19 15:38:03 +0000 |
|---|---|---|
| committer | jsing <> | 2018-08-19 15:38:03 +0000 |
| commit | e081c84895470c8464a8df8c8263cc07071bc844 (patch) | |
| tree | 51b241a94a4954d6e015ae2a61f04f2bc963f114 /src/lib/libssl/ssl_locl.h | |
| parent | 9d1923bca80e91560a5f939cbcdd04c1d25383c2 (diff) | |
| download | openbsd-e081c84895470c8464a8df8c8263cc07071bc844.tar.gz openbsd-e081c84895470c8464a8df8c8263cc07071bc844.tar.bz2 openbsd-e081c84895470c8464a8df8c8263cc07071bc844.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 '')
| -rw-r--r-- | src/lib/libssl/ssl_locl.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index da4bde09f3..8e85f100aa 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.206 2018/08/16 17:49:48 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.207 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 | * |
| @@ -1282,11 +1282,9 @@ int ssl_check_serverhello_tlsext(SSL *s); | |||
| 1282 | #define tlsext_tick_md EVP_sha256 | 1282 | #define tlsext_tick_md EVP_sha256 |
| 1283 | int tls1_process_ticket(SSL *s, const unsigned char *session_id, int len, | 1283 | int tls1_process_ticket(SSL *s, const unsigned char *session_id, int len, |
| 1284 | const unsigned char *limit, SSL_SESSION **ret); | 1284 | const unsigned char *limit, SSL_SESSION **ret); |
| 1285 | int tls12_get_sigandhash_cbb(CBB *cbb, const EVP_PKEY *pk, | 1285 | int tls12_get_hashid(const EVP_MD *md); |
| 1286 | const EVP_MD *md); | ||
| 1287 | int tls12_get_sigandhash(unsigned char *p, const EVP_PKEY *pk, | ||
| 1288 | const EVP_MD *md); | ||
| 1289 | int tls12_get_sigid(const EVP_PKEY *pk); | 1286 | int tls12_get_sigid(const EVP_PKEY *pk); |
| 1287 | int tls12_get_hashandsig(CBB *cbb, const EVP_PKEY *pk, const EVP_MD *md); | ||
| 1290 | const EVP_MD *tls12_get_hash(unsigned char hash_alg); | 1288 | const EVP_MD *tls12_get_hash(unsigned char hash_alg); |
| 1291 | 1289 | ||
| 1292 | void ssl_clear_hash_ctx(EVP_MD_CTX **hash); | 1290 | void ssl_clear_hash_ctx(EVP_MD_CTX **hash); |
