summaryrefslogtreecommitdiff
path: root/crypto/hpke
diff options
context:
space:
mode:
authorslontis <shane.lontis@oracle.com>2023-03-23 11:07:03 +1000
committerPauli <pauli@openssl.org>2023-04-14 13:11:24 +1000
commit8b7b9aac444625195486efd10273694830c41398 (patch)
tree1b92a8eb655852c28aeb2db41f67c2120539bf00 /crypto/hpke
parentefbff4de3e259cee71a4e1bbd86b30ebd86bbdae (diff)
downloadopenssl-new-8b7b9aac444625195486efd10273694830c41398.tar.gz
Fix a HPKE API to put libctx, propq as last (optional parameters).
This keeps the interface consistent with other HPKE API's. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20583)
Diffstat (limited to 'crypto/hpke')
-rw-r--r--crypto/hpke/hpke.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/crypto/hpke/hpke.c b/crypto/hpke/hpke.c
index 12a12ad8fc..bf94d17ce6 100644
--- a/crypto/hpke/hpke.c
+++ b/crypto/hpke/hpke.c
@@ -1334,13 +1334,11 @@ int OSSL_HPKE_suite_check(OSSL_HPKE_SUITE suite)
return hpke_suite_check(suite, NULL, NULL, NULL);
}
-int OSSL_HPKE_get_grease_value(OSSL_LIB_CTX *libctx, const char *propq,
- const OSSL_HPKE_SUITE *suite_in,
+int OSSL_HPKE_get_grease_value(const OSSL_HPKE_SUITE *suite_in,
OSSL_HPKE_SUITE *suite,
- unsigned char *enc,
- size_t *enclen,
- unsigned char *ct,
- size_t ctlen)
+ unsigned char *enc, size_t *enclen,
+ unsigned char *ct, size_t ctlen,
+ OSSL_LIB_CTX *libctx, const char *propq)
{
OSSL_HPKE_SUITE chosen;
size_t plen = 0;