Merge in NSS 3.2.1 changes.

git-svn-id: svn://10.0.0.236/trunk@92007 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nelsonb%netscape.com
2001-04-11 22:49:07 +00:00
parent f1930d9ddd
commit cc14b39c93
2 changed files with 32 additions and 1 deletions

View File

@@ -169,3 +169,9 @@ SEC_PKCS12SetPreferredCipher;
;+ local:
;+ *;
;+};
;+NSS_3.2.1 { # NSS 3.2.1 release
;+ global:
NSSSMIME_VersionCheck;
;+ local:
;+ *;
;+};

View File

@@ -34,7 +34,7 @@
/*
* Stuff specific to S/MIME policy and interoperability.
*
* $Id: smimeutil.c,v 1.5 2001-01-07 08:13:07 nelsonb%netscape.com Exp $
* $Id: smimeutil.c,v 1.6 2001-04-11 22:49:07 nelsonb%netscape.com Exp $
*/
#include "secmime.h"
@@ -715,3 +715,28 @@ loser:
return cert;
}
extern const char __nss_smime_rcsid[];
extern const char __nss_smime_sccsid[];
PRBool
NSSSMIME_VersionCheck(const char *importedVersion)
{
/*
* This is the secret handshake algorithm.
*
* This release has a simple version compatibility
* check algorithm. This release is not backward
* compatible with previous major releases. It is
* not compatible with future major, minor, or
* patch releases.
*/
int vmajor = 0, vminor = 0, vpatch = 0;
const char *ptr = importedVersion;
volatile char c; /* force a reference that won't get optimized away */
c = __nss_smime_rcsid[0] + __nss_smime_sccsid[0];
return NSS_VersionCheck(importedVersion);
}