mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
rsaperf uses low level external headers. Get those headers from the
development tree.
This commit is contained in:
parent
42419ae0ca
commit
50931215ee
@ -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;
|
||||
|
@ -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
|
||||
|
@ -38,6 +38,7 @@
|
||||
#include "nss.h"
|
||||
#include "blapi.h"
|
||||
#include "plgetopt.h"
|
||||
#include "keylow.h"
|
||||
|
||||
|
||||
#define MAX_RSA_MODULUS_BYTES (1024/8)
|
||||
|
Loading…
Reference in New Issue
Block a user