diff options
author | relyea%netscape.com <devnull@localhost> | 2001-04-05 00:22:14 +0000 |
---|---|---|
committer | relyea%netscape.com <devnull@localhost> | 2001-04-05 00:22:14 +0000 |
commit | ee7085efc9512640ea3076ddb6102941f81c3b0f (patch) | |
tree | 5f71e4ca47e27df77a599254cecebe8c5fba6c76 | |
parent | 793b18cde4c0206d257ae542b4490c9fe407ca21 (diff) | |
download | nss-hg-ee7085efc9512640ea3076ddb6102941f81c3b0f.tar.gz |
Arrange for AIX to get the ident string even though the compiler agressively
optimizes things away.
-rw-r--r-- | security/nss/lib/ssl/ssl.def | 6 | ||||
-rw-r--r-- | security/nss/lib/ssl/sslcon.c | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/security/nss/lib/ssl/ssl.def b/security/nss/lib/ssl/ssl.def index c0a23f923..0fee478ba 100644 --- a/security/nss/lib/ssl/ssl.def +++ b/security/nss/lib/ssl/ssl.def @@ -99,3 +99,9 @@ SSL_SetURL; ;+ local: ;+*; ;+}; +;+NSS_3.2.1 { # NSS 3.2.1 release +;+ global: +NSSSSL_VersionCheck; +;+ local: +;+*; +;+}; diff --git a/security/nss/lib/ssl/sslcon.c b/security/nss/lib/ssl/sslcon.c index 05d5ed744..dc57e73f5 100644 --- a/security/nss/lib/ssl/sslcon.c +++ b/security/nss/lib/ssl/sslcon.c @@ -3684,3 +3684,25 @@ loser: return SECFailure; } +extern const char __nss_ssl_rcsid[]; +extern const char __nss_ssl_sccsid[]; + +PRBool +NSSSSL_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_ssl_rcsid[0] + __nss_ssl_sccsid[0]; + return NSS_VersionCheck(importedVersion); +} |