diff options
author | wtc%netscape.com <devnull@localhost> | 2002-03-20 04:38:09 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-03-20 04:38:09 +0000 |
commit | e8cef31d06b66dfbbe28eee370fd9b8a135a4789 (patch) | |
tree | 461eceb2db986aca00777803c396b4b98de96059 | |
parent | 88294a06f01828f491c5f848c493774400c0e369 (diff) | |
download | nss-hg-e8cef31d06b66dfbbe28eee370fd9b8a135a4789.tar.gz |
Bugzilla bug 131427: added sccs and rcs version id strings to the softoken
shared library. r=relyea.
Modified files: manifest.mn pkcs11.c
Added file: softkver.c
-rw-r--r-- | security/nss/lib/softoken/manifest.mn | 1 | ||||
-rw-r--r-- | security/nss/lib/softoken/pkcs11.c | 5 | ||||
-rw-r--r-- | security/nss/lib/softoken/softkver.c | 53 |
3 files changed, 59 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/manifest.mn b/security/nss/lib/softoken/manifest.mn index d93f11515..59da34782 100644 --- a/security/nss/lib/softoken/manifest.mn +++ b/security/nss/lib/softoken/manifest.mn @@ -83,4 +83,5 @@ CSRCS = \ pkcs11u.c \ rawhash.c \ rsawrapr.c \ + softkver.c \ $(NULL) diff --git a/security/nss/lib/softoken/pkcs11.c b/security/nss/lib/softoken/pkcs11.c index ab8759844..bd20ea8b8 100644 --- a/security/nss/lib/softoken/pkcs11.c +++ b/security/nss/lib/softoken/pkcs11.c @@ -2406,10 +2406,15 @@ CK_RV NSC_Finalize (CK_VOID_PTR pReserved) return CKR_OK; } +extern const char __nss_softokn_rcsid[]; +extern const char __nss_softokn_sccsid[]; /* NSC_GetInfo returns general information about Cryptoki. */ CK_RV NSC_GetInfo(CK_INFO_PTR pInfo) { + volatile char c; /* force a reference that won't get optimized away */ + + c = __nss_softokn_rcsid[0] + __nss_softokn_sccsid[0]; pInfo->cryptokiVersion.major = 2; pInfo->cryptokiVersion.minor = 11; PORT_Memcpy(pInfo->manufacturerID,manufacturerID,32); diff --git a/security/nss/lib/softoken/softkver.c b/security/nss/lib/softoken/softkver.c new file mode 100644 index 000000000..e833664a1 --- /dev/null +++ b/security/nss/lib/softoken/softkver.c @@ -0,0 +1,53 @@ +/* + * The contents of this file are subject to the Mozilla Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is the Netscape security libraries. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 2002 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the + * terms of the GNU General Public License Version 2 or later (the + * "GPL"), in which case the provisions of the GPL are applicable + * instead of those above. If you wish to allow use of your + * version of this file only under the terms of the GPL and not to + * allow others to use your version of this file under the MPL, + * indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by + * the GPL. If you do not delete the provisions above, a recipient + * may use your version of this file under either the MPL or the + * GPL. + */ + +/* Library identity and versioning */ + +#include "nss.h" + +#if defined(DEBUG) +#define _DEBUG_STRING " (debug)" +#else +#define _DEBUG_STRING "" +#endif + +/* + * Version information for the 'ident' and 'what commands + * + * NOTE: the first component of the concatenated rcsid string + * must not end in a '$' to prevent rcs keyword substitution. + */ +const char __nss_softokn_rcsid[] = "$Header: NSS " NSS_VERSION _DEBUG_STRING + " " __DATE__ " " __TIME__ " $"; +const char __nss_softokn_sccsid[] = "@(#)NSS " NSS_VERSION _DEBUG_STRING + " " __DATE__ " " __TIME__; |