From a9be3af5ad4836f7e50f0546311ca90c717b861e Mon Sep 17 00:00:00 2001 From: Ulf Möller Date: Mon, 26 Apr 1999 16:43:10 +0000 Subject: Remove NOPROTO definitions and error code comments. --- rsaref/rsaref.c | 37 ------------------------------------- rsaref/rsaref.h | 16 ---------------- 2 files changed, 53 deletions(-) (limited to 'rsaref') diff --git a/rsaref/rsaref.c b/rsaref/rsaref.c index 99839d21e0..0b4fb77232 100644 --- a/rsaref/rsaref.c +++ b/rsaref/rsaref.c @@ -63,25 +63,6 @@ #include #include -/* - * RSAREFerr(RSAREF_F_RSA_REF_BN2BIN,RSAREF_R_CONTENT_ENCODING); - * RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,RSAREF_R_DATA); - * RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_ENCRYPT,RSAREF_R_DIGEST_ALGORITHM); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_DECRYPT,RSAREF_R_ENCODING); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_KEY); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_KEY_ENCODING); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_LEN); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_MODULUS_LEN); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_NEED_RANDOM); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_PRIVATE_KEY); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_PUBLIC_KEY); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_SIGNATURE); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_SIGNATURE_ENCODING); - * RSAREFerr(RSAREF_F_RSA_REF_PUBLIC_ENCRYPT,RSAREF_R_ENCRYPTION_ALGORITHM); - * RSAREFerr(RSAREF_F_RSAREF_BN2BIN,ERR_R_BN_LIB); - */ - -#ifndef NOPROTO static int RSAref_bn2bin(BIGNUM * from, unsigned char* to, int max); #ifdef undef static BIGNUM* RSAref_bin2bn(unsigned char* from, BIGNUM * to, int max); @@ -98,24 +79,6 @@ int RSA_ref_public_decrypt(int len, unsigned char *from, unsigned char *to, RSA *rsa, int padding); static int BN_ref_mod_exp(BIGNUM *r,BIGNUM *a,BIGNUM *p,BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx); static int RSA_ref_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa); -#else - -static int RSAref_bn2bin(); -#ifdef undef -static BIGNUM* RSAref_bin2bn(); -#endif -static int RSAref_Public_eay2ref(); -static int RSAref_Private_eay2ref(); -static int BN_ref_mod_exp(); -static int RSA_ref_mod_exp(); -int RSA_ref_private_decrypt(); -int RSA_ref_private_encrypt(); -int RSA_ref_public_encrypt(); -int RSA_ref_public_decrypt(); -static int BN_ref_mod_exp(); -static int RSA_ref_mod_exp(); -#endif - static RSA_METHOD rsa_pkcs1_ref_meth={ "RSAref PKCS#1 RSA", RSA_ref_public_encrypt, diff --git a/rsaref/rsaref.h b/rsaref/rsaref.h index 336c95eaaa..bbc314fbbd 100644 --- a/rsaref/rsaref.h +++ b/rsaref/rsaref.h @@ -113,7 +113,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,21 +129,6 @@ 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. -- cgit v1.2.3