core: add OSSL_INOUT_CALLBACK
authorPauli <paul.dale@oracle.com>
Mon, 25 May 2020 09:24:39 +0000 (19:24 +1000)
committerPauli <paul.dale@oracle.com>
Wed, 24 Jun 2020 10:05:41 +0000 (20:05 +1000)
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/11682)

include/openssl/core.h

index 5eb992a5c264425139b07a5e9a5a5925c8e0a483..e77c2ba22fa8ecd208105a66c2765bae3e546f21 100644 (file)
@@ -212,7 +212,8 @@ extern OSSL_provider_init_fn OSSL_provider_init;
  * application callback it knows about.
  */
 typedef int (OSSL_CALLBACK)(const OSSL_PARAM params[], void *arg);
-
+typedef int (OSSL_INOUT_CALLBACK)(const OSSL_PARAM in_params[],
+                                  OSSL_PARAM out_params[], void *arg);
 /*
  * Passphrase callback function signature
  *