rsaperf uses low level external headers. Get those headers from the

development tree.
This commit is contained in:
relyea%netscape.com 2001-09-20 21:52:06 +00:00
parent 42419ae0ca
commit 50931215ee
3 changed files with 8 additions and 5 deletions

View File

@ -36,7 +36,7 @@
*/
#include "seccomon.h"
#include "secoidt.h"
#include "keyt.h"
#include "keytlow.h"
#define CONST
@ -105,11 +105,11 @@ static struct SECKEYLowPrivateKeyStr rsaPriv;
SECKEYLowPrivateKey *
getDefaultRSAPrivateKey(void)
{
if (rsaPriv.keyType != rsaKey) {
if (rsaPriv.keyType != lowRSAKey) {
/* leaving arena uninitialized. It isn't used in this test. */
rsaPriv.keyType = rsaKey;
rsaPriv.keyType = lowRSAKey;
/* leaving arena uninitialized. It isn't used. */
/* leaving version uninitialized. It isn't used. */
@ -139,9 +139,9 @@ static struct SECKEYLowPublicKeyStr rsaPub;
SECKEYLowPublicKey *
getDefaultRSAPublicKey(void)
{
if (rsaPub.keyType != rsaKey) {
if (rsaPub.keyType != lowRSAKey) {
rsaPub.keyType = rsaKey;
rsaPub.keyType = lowRSAKey;
rsaPub.u.rsa.modulus.data = default_n;
rsaPub.u.rsa.modulus.len = sizeof default_n;

View File

@ -37,6 +37,8 @@ CORE_DEPTH = ../../..
# MODULE public and private header directories are implicitly REQUIRED.
MODULE = security
INCLUDES += -I$(CORE_DEPTH)/nss/lib/softoken
# This next line is used by .mk files
# and gets translated into $LINCS in manifest.mnw
REQUIRES = dbm seccmd

View File

@ -38,6 +38,7 @@
#include "nss.h"
#include "blapi.h"
#include "plgetopt.h"
#include "keylow.h"
#define MAX_RSA_MODULUS_BYTES (1024/8)