diff options
author | nelsonb%netscape.com <devnull@localhost> | 2001-01-05 01:38:26 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2001-01-05 01:38:26 +0000 |
commit | 2c37abab0f2d147bcccec46f9d6e2dd71aec2b94 (patch) | |
tree | d560ab158deca81666194ba5ad23141a9a8197bd /security/nss/cmd/p7sign | |
parent | bdd0ac1e42e583a42e8aa1d7405a35a11df209ef (diff) | |
download | nss-hg-2c37abab0f2d147bcccec46f9d6e2dd71aec2b94.tar.gz |
Changes to deal with exporting data from Windows DLLs.
SECHashObjects[] is no longer exported.
New function HASH_GetHashObject returns pointer to selected const object.
SSL statistics are now in a structure whose address is obtained via a
call to SSL_GetStatistics().
On NT, the new symbol NSS_USE_STATIC_LIBS must be declared in programs
that use the static SSL library.
Also, propagate "const" declaration for SECHashObjects.
Diffstat (limited to 'security/nss/cmd/p7sign')
-rw-r--r-- | security/nss/cmd/p7sign/p7sign.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/nss/cmd/p7sign/p7sign.c b/security/nss/cmd/p7sign/p7sign.c index d8047a89a..b78193d83 100644 --- a/security/nss/cmd/p7sign/p7sign.c +++ b/security/nss/cmd/p7sign/p7sign.c @@ -45,6 +45,7 @@ #include "cert.h" #include "certdb.h" #include "cdbhdl.h" +#include "sechash.h" /* for HASH_GetHashObject() */ #if defined(XP_UNIX) #include <unistd.h> @@ -127,11 +128,11 @@ SignOut(void *arg, const char *buf, unsigned long len) static int CreateDigest(SECItem *data, char *digestdata, unsigned int *len, unsigned int maxlen) { - SECHashObject *hashObj; + const SECHashObject *hashObj; void *hashcx; /* XXX probably want to extend interface to allow other hash algorithms */ - hashObj = &SECHashObjects[HASH_AlgSHA1]; + hashObj = HASH_GetHashObject(HASH_AlgSHA1); hashcx = (* hashObj->create)(); if (hashcx == NULL) |