X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=rsaref%2Frsaref.h;h=15f65dd94f8d2b7e1e447ce8709e32f0d7a44d75;hp=c264e288c93ec164383213b4de799bc49951f77b;hb=cc96f6b7a491b99714cd12712db6289e4d6dbb17;hpb=58964a492275ca9a59a0cd9c8155cb2491b4b909;ds=inline diff --git a/rsaref/rsaref.h b/rsaref/rsaref.h index c264e288c9..15f65dd94f 100644 --- a/rsaref/rsaref.h +++ b/rsaref/rsaref.h @@ -59,7 +59,12 @@ #ifndef HEADER_RSAREF_H #define HEADER_RSAREF_H -#include "rsa.h" +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef NO_RSA +#include /* 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, @@ -129,23 +133,13 @@ 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(); - #endif /* BEGIN ERROR CODES */ +/* The following lines are auto generated by the script mkerr.pl. Any changes + * made after this point may be overwritten when the script is next run. + */ + /* Error codes for the RSAREF functions. */ /* Function codes. */ @@ -178,7 +172,7 @@ RSA_METHOD *RSA_PKCS1_RSAref(); #define RSAREF_R_PUBLIC_KEY 0x040a #define RSAREF_R_SIGNATURE 0x040b #define RSAREF_R_SIGNATURE_ENCODING 0x040c - + #ifdef __cplusplus } #endif