summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libssl/ssl_sigalgs.c15
-rw-r--r--lib/libssl/ssl_sigalgs.h3
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);