summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2001-04-05 00:22:41 +0000
committerrelyea%netscape.com <devnull@localhost>2001-04-05 00:22:41 +0000
commitcd9f28f173d97023fe6f69b3440c112d7e068be4 (patch)
tree9da697c4fd88a9890ae3e9f54468653cc8617cef
parentee7085efc9512640ea3076ddb6102941f81c3b0f (diff)
downloadnss-hg-cd9f28f173d97023fe6f69b3440c112d7e068be4.tar.gz
Arrange for AIX to get the ident string even though the compiler agressively
optimizes things away.
-rw-r--r--security/nss/lib/smime/smime.def6
-rw-r--r--security/nss/lib/smime/smimeutil.c25
2 files changed, 31 insertions, 0 deletions
diff --git a/security/nss/lib/smime/smime.def b/security/nss/lib/smime/smime.def
index f1c0f293d..d80a80639 100644
--- a/security/nss/lib/smime/smime.def
+++ b/security/nss/lib/smime/smime.def
@@ -169,3 +169,9 @@ SEC_PKCS12SetPreferredCipher;
;+ local:
;+ *;
;+};
+;+NSS_3.2 { # NSS 3.2 release
+;+ global:
+NSSSMIME_VersionCheck;
+;+ local:
+;+ *;
+;+};
diff --git a/security/nss/lib/smime/smimeutil.c b/security/nss/lib/smime/smimeutil.c
index 1a4d4073e..b76a58883 100644
--- a/security/nss/lib/smime/smimeutil.c
+++ b/security/nss/lib/smime/smimeutil.c
@@ -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);
+}
+