]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_locl.h
Add support for reference counting using C11 atomics
[thirdparty/openssl.git] / crypto / rsa / rsa_locl.h
index 5d16aa6f4372ffb23843e5cfed1b41ee21d3b275..e342ca8dfb62b61d1811265892b8ad16b4e1c963 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <openssl/rsa.h>
+#include "internal/refcount.h"
 
 struct rsa_st {
     /*
@@ -29,7 +30,7 @@ struct rsa_st {
     BIGNUM *iqmp;
     /* be careful using this if the RSA structure is shared */
     CRYPTO_EX_DATA ex_data;
-    int references;
+    CRYPTO_REF_COUNT references;
     int flags;
     /* Used to cache montgomery values */
     BN_MONT_CTX *_method_mod_n;