1998-12-21 18:52:47 +08:00
|
|
|
/* crypto/asn1/n_pkey.c */
|
1998-12-21 18:56:39 +08:00
|
|
|
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
|
1998-12-21 18:52:47 +08:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This package is an SSL implementation written
|
|
|
|
* by Eric Young (eay@cryptsoft.com).
|
|
|
|
* The implementation was written so as to conform with Netscapes SSL.
|
|
|
|
*
|
|
|
|
* This library is free for commercial and non-commercial use as long as
|
|
|
|
* the following conditions are aheared to. The following conditions
|
|
|
|
* apply to all code found in this distribution, be it the RC4, RSA,
|
|
|
|
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
|
|
|
|
* included with this distribution is covered by the same copyright terms
|
|
|
|
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
|
|
|
|
*
|
|
|
|
* Copyright remains Eric Young's, and as such any Copyright notices in
|
|
|
|
* the code are not to be removed.
|
|
|
|
* If this package is used in a product, Eric Young should be given attribution
|
|
|
|
* as the author of the parts of the library used.
|
|
|
|
* This can be in the form of a textual message at program startup or
|
|
|
|
* in documentation (online or textual) provided with the package.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* "This product includes cryptographic software written by
|
|
|
|
* Eric Young (eay@cryptsoft.com)"
|
|
|
|
* The word 'cryptographic' can be left out if the rouines from the library
|
|
|
|
* being used are not cryptographic related :-).
|
|
|
|
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
|
|
* the apps directory (application code) you must include an acknowledgement:
|
|
|
|
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* The licence and distribution terms for any publically available version or
|
|
|
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
|
|
|
* copied and put under another distribution licence
|
|
|
|
* [including the GNU Public Licence.]
|
|
|
|
*/
|
|
|
|
|
2001-02-20 00:06:34 +08:00
|
|
|
#ifndef OPENSSL_NO_RSA
|
1998-12-21 18:52:47 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "cryptlib.h"
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/rsa.h>
|
|
|
|
#include <openssl/objects.h>
|
2000-12-09 03:09:35 +08:00
|
|
|
#include <openssl/asn1t.h>
|
1999-04-24 06:13:45 +08:00
|
|
|
#include <openssl/asn1_mac.h>
|
|
|
|
#include <openssl/evp.h>
|
|
|
|
#include <openssl/x509.h>
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
|
2001-02-20 00:06:34 +08:00
|
|
|
#ifndef OPENSSL_NO_RC4
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
typedef struct netscape_pkey_st
|
|
|
|
{
|
2000-12-09 03:09:35 +08:00
|
|
|
long version;
|
1998-12-21 18:52:47 +08:00
|
|
|
X509_ALGOR *algor;
|
|
|
|
ASN1_OCTET_STRING *private_key;
|
|
|
|
} NETSCAPE_PKEY;
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
typedef struct netscape_encrypted_pkey_st
|
|
|
|
{
|
|
|
|
ASN1_OCTET_STRING *os;
|
|
|
|
/* This is the same structure as DigestInfo so use it:
|
|
|
|
* although this isn't really anything to do with
|
|
|
|
* digests.
|
|
|
|
*/
|
|
|
|
X509_SIG *enckey;
|
|
|
|
} NETSCAPE_ENCRYPTED_PKEY;
|
|
|
|
|
|
|
|
|
|
|
|
ASN1_BROKEN_SEQUENCE(NETSCAPE_ENCRYPTED_PKEY) = {
|
|
|
|
ASN1_SIMPLE(NETSCAPE_ENCRYPTED_PKEY, os, ASN1_OCTET_STRING),
|
|
|
|
ASN1_SIMPLE(NETSCAPE_ENCRYPTED_PKEY, enckey, X509_SIG)
|
2001-02-23 20:47:06 +08:00
|
|
|
} ASN1_BROKEN_SEQUENCE_END(NETSCAPE_ENCRYPTED_PKEY)
|
2000-12-09 03:09:35 +08:00
|
|
|
|
2002-06-15 03:01:52 +08:00
|
|
|
DECLARE_ASN1_FUNCTIONS_const(NETSCAPE_ENCRYPTED_PKEY)
|
|
|
|
DECLARE_ASN1_ENCODE_FUNCTIONS_const(NETSCAPE_ENCRYPTED_PKEY,NETSCAPE_ENCRYPTED_PKEY)
|
2000-12-09 03:09:35 +08:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS_const(NETSCAPE_ENCRYPTED_PKEY)
|
|
|
|
|
|
|
|
ASN1_SEQUENCE(NETSCAPE_PKEY) = {
|
|
|
|
ASN1_SIMPLE(NETSCAPE_PKEY, version, LONG),
|
|
|
|
ASN1_SIMPLE(NETSCAPE_PKEY, algor, X509_ALGOR),
|
|
|
|
ASN1_SIMPLE(NETSCAPE_PKEY, private_key, ASN1_OCTET_STRING)
|
2001-02-23 20:47:06 +08:00
|
|
|
} ASN1_SEQUENCE_END(NETSCAPE_PKEY)
|
2000-12-09 03:09:35 +08:00
|
|
|
|
2002-06-15 03:01:52 +08:00
|
|
|
DECLARE_ASN1_FUNCTIONS_const(NETSCAPE_PKEY)
|
|
|
|
DECLARE_ASN1_ENCODE_FUNCTIONS_const(NETSCAPE_PKEY,NETSCAPE_PKEY)
|
2000-12-09 03:09:35 +08:00
|
|
|
IMPLEMENT_ASN1_FUNCTIONS_const(NETSCAPE_PKEY)
|
|
|
|
|
|
|
|
static RSA *d2i_RSA_NET_2(RSA **a, ASN1_OCTET_STRING *os,
|
|
|
|
int (*cb)(), int sgckey);
|
1999-04-27 09:14:46 +08:00
|
|
|
|
2000-11-07 07:04:15 +08:00
|
|
|
int i2d_Netscape_RSA(const RSA *a, unsigned char **pp, int (*cb)())
|
2000-06-16 07:48:05 +08:00
|
|
|
{
|
|
|
|
return i2d_RSA_NET(a, pp, cb, 0);
|
|
|
|
}
|
|
|
|
|
2000-11-07 07:04:15 +08:00
|
|
|
int i2d_RSA_NET(const RSA *a, unsigned char **pp, int (*cb)(), int sgckey)
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
2000-12-09 03:09:35 +08:00
|
|
|
int i, j, ret = 0;
|
|
|
|
int rsalen, pkeylen, olen;
|
|
|
|
NETSCAPE_PKEY *pkey = NULL;
|
|
|
|
NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
|
1998-12-21 18:52:47 +08:00
|
|
|
unsigned char buf[256],*zz;
|
|
|
|
unsigned char key[EVP_MAX_KEY_LENGTH];
|
|
|
|
EVP_CIPHER_CTX ctx;
|
|
|
|
|
|
|
|
if (a == NULL) return(0);
|
|
|
|
|
|
|
|
if ((pkey=NETSCAPE_PKEY_new()) == NULL) goto err;
|
2000-12-09 03:09:35 +08:00
|
|
|
if ((enckey=NETSCAPE_ENCRYPTED_PKEY_new()) == NULL) goto err;
|
|
|
|
pkey->version = 0;
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
pkey->algor->algorithm=OBJ_nid2obj(NID_rsaEncryption);
|
|
|
|
if ((pkey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
|
|
|
|
pkey->algor->parameter->type=V_ASN1_NULL;
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
rsalen = i2d_RSAPrivateKey(a, NULL);
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
/* Fake some octet strings just for the initial length
|
|
|
|
* calculation.
|
|
|
|
*/
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
pkey->private_key->length=rsalen;
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
pkeylen=i2d_NETSCAPE_PKEY(pkey,NULL);
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
enckey->enckey->digest->length = pkeylen;
|
|
|
|
|
|
|
|
enckey->os->length = 11; /* "private-key" */
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
enckey->enckey->algor->algorithm=OBJ_nid2obj(NID_rc4);
|
|
|
|
if ((enckey->enckey->algor->parameter=ASN1_TYPE_new()) == NULL) goto err;
|
|
|
|
enckey->enckey->algor->parameter->type=V_ASN1_NULL;
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
if (pp == NULL)
|
|
|
|
{
|
2000-12-09 03:09:35 +08:00
|
|
|
olen = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, NULL);
|
|
|
|
NETSCAPE_PKEY_free(pkey);
|
|
|
|
NETSCAPE_ENCRYPTED_PKEY_free(enckey);
|
|
|
|
return olen;
|
1998-12-21 18:52:47 +08:00
|
|
|
}
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
|
|
|
|
/* Since its RC4 encrypted length is actual length */
|
|
|
|
if ((zz=(unsigned char *)OPENSSL_malloc(rsalen)) == NULL)
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);
|
|
|
|
goto err;
|
|
|
|
}
|
2000-12-09 03:09:35 +08:00
|
|
|
|
|
|
|
pkey->private_key->data = zz;
|
|
|
|
/* Write out private key encoding */
|
1998-12-21 18:52:47 +08:00
|
|
|
i2d_RSAPrivateKey(a,&zz);
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
if ((zz=OPENSSL_malloc(pkeylen)) == NULL)
|
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!ASN1_STRING_set(enckey->os, "private-key", -1))
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ERR_R_MALLOC_FAILURE);
|
|
|
|
goto err;
|
|
|
|
}
|
2000-12-09 03:09:35 +08:00
|
|
|
enckey->enckey->digest->data = zz;
|
1998-12-21 18:52:47 +08:00
|
|
|
i2d_NETSCAPE_PKEY(pkey,&zz);
|
2000-12-09 03:09:35 +08:00
|
|
|
|
|
|
|
/* Wipe the private key encoding */
|
|
|
|
memset(pkey->private_key->data, 0, rsalen);
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
if (cb == NULL)
|
|
|
|
cb=EVP_read_pw_string;
|
|
|
|
i=cb(buf,256,"Enter Private Key password:",1);
|
|
|
|
if (i != 0)
|
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_I2D_NETSCAPE_RSA,ASN1_R_BAD_PASSWORD_READ);
|
|
|
|
goto err;
|
|
|
|
}
|
2000-06-16 07:48:05 +08:00
|
|
|
i = strlen((char *)buf);
|
|
|
|
/* If the key is used for SGC the algorithm is modified a little. */
|
2000-12-09 03:09:35 +08:00
|
|
|
if(sgckey) {
|
2001-10-16 09:24:29 +08:00
|
|
|
EVP_Digest(buf, i, buf, NULL, EVP_md5(), NULL);
|
2000-06-16 07:48:05 +08:00
|
|
|
memcpy(buf + 16, "SGCKEYSALT", 10);
|
|
|
|
i = 26;
|
|
|
|
}
|
2001-02-02 08:45:54 +08:00
|
|
|
|
2000-06-16 07:48:05 +08:00
|
|
|
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
1998-12-21 18:52:47 +08:00
|
|
|
memset(buf,0,256);
|
1998-12-21 18:56:39 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
/* Encrypt private key in place */
|
|
|
|
zz = enckey->enckey->digest->data;
|
1998-12-21 18:56:39 +08:00
|
|
|
EVP_CIPHER_CTX_init(&ctx);
|
2001-10-17 08:37:12 +08:00
|
|
|
EVP_EncryptInit_ex(&ctx,EVP_rc4(),NULL,key,NULL);
|
2000-12-09 03:09:35 +08:00
|
|
|
EVP_EncryptUpdate(&ctx,zz,&i,zz,pkeylen);
|
2001-10-17 08:37:12 +08:00
|
|
|
EVP_EncryptFinal_ex(&ctx,zz + i,&j);
|
1998-12-21 18:52:47 +08:00
|
|
|
EVP_CIPHER_CTX_cleanup(&ctx);
|
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
ret = i2d_NETSCAPE_ENCRYPTED_PKEY(enckey, pp);
|
1998-12-21 18:52:47 +08:00
|
|
|
err:
|
2000-12-09 03:09:35 +08:00
|
|
|
NETSCAPE_ENCRYPTED_PKEY_free(enckey);
|
|
|
|
NETSCAPE_PKEY_free(pkey);
|
1998-12-21 18:52:47 +08:00
|
|
|
return(ret);
|
|
|
|
}
|
|
|
|
|
2000-06-16 07:48:05 +08:00
|
|
|
|
2000-11-07 07:04:15 +08:00
|
|
|
RSA *d2i_Netscape_RSA(RSA **a, const unsigned char **pp, long length, int (*cb)())
|
2000-06-16 07:48:05 +08:00
|
|
|
{
|
|
|
|
return d2i_RSA_NET(a, pp, length, cb, 0);
|
|
|
|
}
|
|
|
|
|
2000-11-07 07:04:15 +08:00
|
|
|
RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, int (*cb)(), int sgckey)
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
RSA *ret=NULL;
|
2000-12-09 03:09:35 +08:00
|
|
|
const unsigned char *p, *kp;
|
|
|
|
NETSCAPE_ENCRYPTED_PKEY *enckey = NULL;
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
p = *pp;
|
|
|
|
|
|
|
|
enckey = d2i_NETSCAPE_ENCRYPTED_PKEY(NULL, &p, length);
|
|
|
|
if(!enckey) {
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA,ASN1_R_DECODING_ERROR);
|
|
|
|
return NULL;
|
|
|
|
}
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
if ((enckey->os->length != 11) || (strncmp("private-key",
|
|
|
|
(char *)enckey->os->data,11) != 0))
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA,ASN1_R_PRIVATE_KEY_HEADER_MISSING);
|
2000-12-09 03:09:35 +08:00
|
|
|
NETSCAPE_ENCRYPTED_PKEY_free(enckey);
|
|
|
|
return NULL;
|
1998-12-21 18:52:47 +08:00
|
|
|
}
|
2000-12-09 03:09:35 +08:00
|
|
|
if (OBJ_obj2nid(enckey->enckey->algor->algorithm) != NID_rc4)
|
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM);
|
|
|
|
goto err;
|
1998-12-21 18:52:47 +08:00
|
|
|
}
|
2000-12-09 03:09:35 +08:00
|
|
|
kp = enckey->enckey->digest->data;
|
|
|
|
if (cb == NULL)
|
|
|
|
cb=EVP_read_pw_string;
|
|
|
|
if ((ret=d2i_RSA_NET_2(a, enckey->enckey->digest,cb, sgckey)) == NULL) goto err;
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
*pp = p;
|
|
|
|
|
|
|
|
err:
|
|
|
|
NETSCAPE_ENCRYPTED_PKEY_free(enckey);
|
|
|
|
return ret;
|
|
|
|
|
|
|
|
}
|
2000-06-16 07:48:05 +08:00
|
|
|
|
2000-12-09 03:09:35 +08:00
|
|
|
static RSA *d2i_RSA_NET_2(RSA **a, ASN1_OCTET_STRING *os,
|
2000-06-16 07:48:05 +08:00
|
|
|
int (*cb)(), int sgckey)
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
NETSCAPE_PKEY *pkey=NULL;
|
|
|
|
RSA *ret=NULL;
|
|
|
|
int i,j;
|
2000-12-09 03:09:35 +08:00
|
|
|
unsigned char buf[256];
|
|
|
|
const unsigned char *zz;
|
1998-12-21 18:52:47 +08:00
|
|
|
unsigned char key[EVP_MAX_KEY_LENGTH];
|
|
|
|
EVP_CIPHER_CTX ctx;
|
|
|
|
|
|
|
|
i=cb(buf,256,"Enter Private Key password:",0);
|
|
|
|
if (i != 0)
|
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_BAD_PASSWORD_READ);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
2000-06-16 07:48:05 +08:00
|
|
|
i = strlen((char *)buf);
|
|
|
|
if(sgckey){
|
2001-10-16 09:24:29 +08:00
|
|
|
EVP_Digest(buf, i, buf, NULL, EVP_md5(), NULL);
|
2000-06-16 07:48:05 +08:00
|
|
|
memcpy(buf + 16, "SGCKEYSALT", 10);
|
|
|
|
i = 26;
|
|
|
|
}
|
|
|
|
|
|
|
|
EVP_BytesToKey(EVP_rc4(),EVP_md5(),NULL,buf,i,1,key,NULL);
|
1998-12-21 18:52:47 +08:00
|
|
|
memset(buf,0,256);
|
1998-12-21 18:56:39 +08:00
|
|
|
|
|
|
|
EVP_CIPHER_CTX_init(&ctx);
|
2001-10-17 08:37:12 +08:00
|
|
|
EVP_DecryptInit_ex(&ctx,EVP_rc4(),NULL, key,NULL);
|
1998-12-21 18:52:47 +08:00
|
|
|
EVP_DecryptUpdate(&ctx,os->data,&i,os->data,os->length);
|
2001-10-17 08:37:12 +08:00
|
|
|
EVP_DecryptFinal_ex(&ctx,&(os->data[i]),&j);
|
1998-12-21 18:52:47 +08:00
|
|
|
EVP_CIPHER_CTX_cleanup(&ctx);
|
|
|
|
os->length=i+j;
|
|
|
|
|
|
|
|
zz=os->data;
|
|
|
|
|
|
|
|
if ((pkey=d2i_NETSCAPE_PKEY(NULL,&zz,os->length)) == NULL)
|
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_UNABLE_TO_DECODE_RSA_PRIVATE_KEY);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
|
|
|
|
zz=pkey->private_key->data;
|
2000-12-09 03:09:35 +08:00
|
|
|
if ((ret=d2i_RSAPrivateKey(a,&zz,pkey->private_key->length)) == NULL)
|
1998-12-21 18:52:47 +08:00
|
|
|
{
|
|
|
|
ASN1err(ASN1_F_D2I_NETSCAPE_RSA_2,ASN1_R_UNABLE_TO_DECODE_RSA_KEY);
|
|
|
|
goto err;
|
|
|
|
}
|
|
|
|
err:
|
2000-12-09 03:09:35 +08:00
|
|
|
NETSCAPE_PKEY_free(pkey);
|
1998-12-21 18:52:47 +08:00
|
|
|
return(ret);
|
|
|
|
}
|
|
|
|
|
2001-02-20 00:06:34 +08:00
|
|
|
#endif /* OPENSSL_NO_RC4 */
|
2000-01-09 05:06:24 +08:00
|
|
|
|
2001-02-20 00:06:34 +08:00
|
|
|
#else /* !OPENSSL_NO_RSA */
|
2000-01-09 05:06:24 +08:00
|
|
|
|
|
|
|
# if PEDANTIC
|
|
|
|
static void *dummy=&dummy;
|
|
|
|
# endif
|
|
|
|
|
1999-04-27 09:14:46 +08:00
|
|
|
#endif
|