Note about contribtions from the US
[openssl.git] / rsaref / rsaref.h
index 336c95eaaa5fd00585ade885d0ce6e8320e389d5..498449f40e063b2d22956285c4b830ed90be1df2 100644 (file)
 #ifndef HEADER_RSAREF_H
 #define HEADER_RSAREF_H
 
+#ifndef NO_RSA
 #include <openssl/rsa.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 /* RSAeuro */
 /*#define  RSAref_MAX_BITS             2048*/
 
@@ -113,7 +118,6 @@ typedef struct RSARandomState_st
 #define RE_SIGNATURE_ENCODING 0x040c
 #define RE_ENCRYPTION_ALGORITHM 0x040d
 
-#ifndef NOPROTO
 int RSAPrivateDecrypt(unsigned char *to, int *outlen, unsigned char *from,
        int len, RSArefPrivateKey *RSAkey);
 int RSAPrivateEncrypt(unsigned char *to, int *outlen, unsigned char *from,
@@ -130,19 +134,9 @@ int R_RandomFinal(RSARandomState *rnd);
 void ERR_load_RSAREF_strings(void );
 RSA_METHOD *RSA_PKCS1_RSAref(void );
 
-#else
-int RSAPrivateDecrypt();
-int RSAPrivateEncrypt();
-int RSAPublicDecrypt();
-int RSAPublicEncrypt();
-int R_RandomInit();
-int R_GetRandomBytesNeeded();
-int R_RandomUpdate();
-int R_RandomFinal();
-
-void ERR_load_RSAREF_strings();
-RSA_METHOD *RSA_PKCS1_RSAref();
-
+#ifdef  __cplusplus
+}
+#endif
 #endif
 
 /* BEGIN ERROR CODES */
@@ -183,8 +177,4 @@ RSA_METHOD *RSA_PKCS1_RSAref();
 #define RSAREF_R_SIGNATURE                              0x040b
 #define RSAREF_R_SIGNATURE_ENCODING                     0x040c
 
-#ifdef  __cplusplus
-}
 #endif
-#endif
-