summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 00:41:38 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 00:41:38 +0000
commit6bcdc7994b6de7fb2bac5b7e692e94ffade416a6 (patch)
treebe2125e0df337b320e0e03a29339f081ef77b26c
parentdbfc174a230b39fe8c6671bba8ea7bebde2e698c (diff)
downloads6-networking-6bcdc7994b6de7fb2bac5b7e692e94ffade416a6.tar.xz
Don't hardcode ecdsa signature implementation in sni_policy
-rw-r--r--src/sbearssl/sbearssl_sni_policy_vtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sbearssl/sbearssl_sni_policy_vtable.c b/src/sbearssl/sbearssl_sni_policy_vtable.c
index 26bc9a6..aeefa7d 100644
--- a/src/sbearssl/sbearssl_sni_policy_vtable.c
+++ b/src/sbearssl/sbearssl_sni_policy_vtable.c
@@ -105,7 +105,7 @@ static int choose (br_ssl_server_policy_class const **pctx, br_ssl_server_contex
if (sbearssl_ec_issuer_keytype(&kt, &choices->chain[0])) return 0 ;
if (!sbearssl_choose_algos_ec(sc, choices, BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN, kt)) return 0 ;
pol->keyx.ec = sc->eng.iec ; /* the br_ssl_engine_get_ec() abstraction lacks a const */
- pol->sign.ec = br_ecdsa_i31_sign_asn1 ; /* have to hardcode, no access to BR_LOMUL */
+ pol->sign.ec = br_ecdsa_sign_asn1_get_default() ;
pol->mhash = &sc->eng.mhash ; /* missing an abstraction function there */
break ;
}