Add support for reference counting using C11 atomics
[openssl.git] / crypto / dsa / dsa_locl.h
index 9021fce0bf8af1e340230a85fa896447ccf3219e..f575195c378dd8d5fed8bd2ae73a469b824e408f 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <openssl/dsa.h>
+#include "internal/refcount.h"
 
 struct dsa_st {
     /*
@@ -24,7 +25,7 @@ struct dsa_st {
     int flags;
     /* Normally used to cache montgomery values */
     BN_MONT_CTX *method_mont_p;
-    int references;
+    CRYPTO_REF_COUNT references;
     CRYPTO_EX_DATA ex_data;
     const DSA_METHOD *meth;
     /* functional reference if 'meth' is ENGINE-provided */