From 40126b1e5bd64dae465aacf8e68d6ed8b96d1490 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 3 Jun 2021 11:34:51 +0000 Subject: Inline functions --- src/sbearssl/sbearssl_sni_policy_vtable.c | 4 ++-- 1 file 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) ; -- cgit v1.2.3