summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 11:34:51 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 11:34:51 +0000
commit40126b1e5bd64dae465aacf8e68d6ed8b96d1490 (patch)
tree9458f82d028571e56e5f94ad756344bc66579088 /src
parent6bcdc7994b6de7fb2bac5b7e692e94ffade416a6 (diff)
downloads6-networking-40126b1e5bd64dae465aacf8e68d6ed8b96d1490.tar.xz
Inline functions
Diffstat (limited to 'src')
-rw-r--r--src/sbearssl/sbearssl_sni_policy_vtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sbearssl/sbearssl_sni_policy_vtable.c b/src/sbearssl/sbearssl_sni_policy_vtable.c
index aeefa7d..ea97f53 100644
--- a/src/sbearssl/sbearssl_sni_policy_vtable.c
+++ b/src/sbearssl/sbearssl_sni_policy_vtable.c
@@ -134,7 +134,7 @@ static uint32_t do_keyx (br_ssl_server_policy_class const **pctx, unsigned char
}
}
-static size_t sign_rsa (sbearssl_sni_policy_context *pol, unsigned int algo_id, unsigned char *data, size_t hv_len, size_t len)
+static inline size_t sign_rsa (sbearssl_sni_policy_context *pol, unsigned int algo_id, unsigned char *data, size_t hv_len, size_t len)
{
static unsigned char const HASH_OID_SHA1[] = { 0x05, 0x2B, 0x0E, 0x03, 0x02, 0x1A } ;
static unsigned char const HASH_OID_SHA224[] = { 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04 } ;
@@ -154,7 +154,7 @@ static size_t sign_rsa (sbearssl_sni_policy_context *pol, unsigned int algo_id,
return pol->sign.rsa(hash_oid, hv, hv_len, &pol->skey.data.rsa, data) ? sig_len : 0 ;
}
-static size_t sign_ec (sbearssl_sni_policy_context *pol, unsigned int algo_id, unsigned char *data, size_t hv_len, size_t len)
+static inline size_t sign_ec (sbearssl_sni_policy_context *pol, unsigned int algo_id, unsigned char *data, size_t hv_len, size_t len)
{
unsigned char hv[64] ;
br_hash_class const *hc = br_multihash_getimpl(pol->mhash, algo_id) ;