Improve code reuse in the provider MAC bridge
[openssl.git] / providers / implementations / include / prov / macsignature.h
index 57adf7d7ba87cba446be18f81ddff25e35f44408..bec5c46fbe376b7996ee6f62db84a40420dd19c3 100644 (file)
@@ -10,6 +10,7 @@
 #include <stdlib.h>
 #include <openssl/crypto.h>
 #include "internal/refcount.h"
+#include "prov/provider_util.h"
 
 struct mac_key_st {
     CRYPTO_RWLOCK *lock;
@@ -17,8 +18,8 @@ struct mac_key_st {
     CRYPTO_REF_COUNT refcnt;
     unsigned char *priv_key;
     size_t priv_key_len;
-    char *cipher_name;
-    char *engine_name;
+    PROV_CIPHER cipher;
+    char *properties;
     int cmac;
 };