]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/openssl/core.h
SERIALIZER: New API for serialization of objects through providers
[thirdparty/openssl.git] / include / openssl / core.h
index bed580c811f8a2a1faf1d64e69581c131d0279d4..5959a3188064690c09c5b6c961675d6ba9b57df4 100644 (file)
@@ -202,6 +202,16 @@ extern OSSL_provider_init_fn OSSL_provider_init;
  */
 typedef int (OSSL_CALLBACK)(const OSSL_PARAM params[], void *arg);
 
+/*
+ * Passphrase callback function signature
+ *
+ * This is similar to the generic callback function above, but adds a
+ * result parameter.
+ */
+typedef int (OSSL_PASSPHRASE_CALLBACK)(char *pass, size_t pass_size,
+                                       size_t *pass_len,
+                                       const OSSL_PARAM params[], void *arg);
+
 # ifdef __cplusplus
 }
 # endif