diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2018-11-10 08:42:40 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2018-11-10 08:42:40 +0000 |
commit | bcd9396ea763bf8b3faa9026654f45637bc62a53 (patch) | |
tree | 0e6e5a2c9d7c6770d61e62e8453cb8a74ac72b84 | |
parent | 9918816519a5ca914f85c62db53c0d916c3467a9 (diff) |
Remove dead code
ok jsing@
-rw-r--r-- | lib/libssl/ssl_sigalgs.c | 15 | ||||
-rw-r--r-- | lib/libssl/ssl_sigalgs.h | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/lib/libssl/ssl_sigalgs.c b/lib/libssl/ssl_sigalgs.c index 5259ea676a0..cee3f0bf6de 100644 --- a/lib/libssl/ssl_sigalgs.c +++ b/lib/libssl/ssl_sigalgs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sigalgs.c,v 1.4 2018/11/10 01:19:09 beck Exp $ */ +/* $OpenBSD: ssl_sigalgs.c,v 1.5 2018/11/10 08:42:39 beck Exp $ */ /* * Copyright (c) 2018, Bob Beck <beck@openbsd.org> * @@ -205,19 +205,6 @@ ssl_sigalg(uint16_t sigalg, uint16_t *values, size_t len) return NULL; } -uint16_t -ssl_sigalg_value(const EVP_PKEY *pk, const EVP_MD *md) -{ - int i; - - for (i = 0; sigalgs[i].value != SIGALG_NONE; i++) { - if ((sigalgs[i].key_type == pk->type) && - ((sigalgs[i].md() == md))) - return sigalgs[i].value; - } - return SIGALG_NONE; -} - int ssl_sigalgs_build(CBB *cbb, uint16_t *values, size_t len) { diff --git a/lib/libssl/ssl_sigalgs.h b/lib/libssl/ssl_sigalgs.h index ca1e4feb327..f6fb5e2ad60 100644 --- a/lib/libssl/ssl_sigalgs.h +++ b/lib/libssl/ssl_sigalgs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sigalgs.h,v 1.5 2018/11/10 01:19:09 beck Exp $ */ +/* $OpenBSD: ssl_sigalgs.h,v 1.6 2018/11/10 08:42:39 beck Exp $ */ /* * Copyright (c) 2018, Bob Beck <beck@openbsd.org> * @@ -71,7 +71,6 @@ extern size_t tls12_sigalgs_len; const struct ssl_sigalg *ssl_sigalg_lookup(uint16_t sigalg); const struct ssl_sigalg *ssl_sigalg(uint16_t sigalg, uint16_t *values, size_t len); -uint16_t ssl_sigalg_value(const EVP_PKEY *pk, const EVP_MD *md); int ssl_sigalgs_build(CBB *cbb, uint16_t *values, size_t len); int ssl_sigalg_pkey_check(uint16_t sigalg, EVP_PKEY *pk); |