Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: nss/lib/pk11wrap/pk11akey.c

Issue 319593003: Update to NSS 3.16.2 Beta 3. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Remove unused function SEC_NumberOrNameStringToOIDTag Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 /* 4 /*
5 * This file contains functions to manage asymetric keys, (public and 5 * This file contains functions to manage asymetric keys, (public and
6 * private keys). 6 * private keys).
7 */ 7 */
8 #include "seccomon.h" 8 #include "seccomon.h"
9 #include "secmod.h" 9 #include "secmod.h"
10 #include "secmodi.h" 10 #include "secmodi.h"
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 SECKEYPrivateKey *pk = PK11_FindKeyByAnyCert(cert, wincx); 1881 SECKEYPrivateKey *pk = PK11_FindKeyByAnyCert(cert, wincx);
1882 if (pk != NULL) { 1882 if (pk != NULL) {
1883 epki = PK11_ExportEncryptedPrivKeyInfo(slot, algTag, pwitem, pk, 1883 epki = PK11_ExportEncryptedPrivKeyInfo(slot, algTag, pwitem, pk,
1884 iteration, wincx); 1884 iteration, wincx);
1885 SECKEY_DestroyPrivateKey(pk); 1885 SECKEY_DestroyPrivateKey(pk);
1886 } 1886 }
1887 return epki; 1887 return epki;
1888 } 1888 }
1889 1889
1890 SECItem* 1890 SECItem*
1891 PK11_DEREncodePublicKey(SECKEYPublicKey *pubk) 1891 PK11_DEREncodePublicKey(const SECKEYPublicKey *pubk)
1892 { 1892 {
1893 return SECKEY_EncodeDERSubjectPublicKeyInfo(pubk); 1893 return SECKEY_EncodeDERSubjectPublicKeyInfo(pubk);
1894 } 1894 }
1895 1895
1896 char * 1896 char *
1897 PK11_GetPrivateKeyNickname(SECKEYPrivateKey *privKey) 1897 PK11_GetPrivateKeyNickname(SECKEYPrivateKey *privKey)
1898 { 1898 {
1899 return PK11_GetObjectNickname(privKey->pkcs11Slot,privKey->pkcs11ID); 1899 return PK11_GetObjectNickname(privKey->pkcs11Slot,privKey->pkcs11ID);
1900 } 1900 }
1901 1901
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 for (i=0; i < objCount ; i++) { 2374 for (i=0; i < objCount ; i++) {
2375 SECKEYPrivateKey *privKey = 2375 SECKEYPrivateKey *privKey =
2376 PK11_MakePrivKey(slot,nullKey,PR_TRUE,key_ids[i],wincx); 2376 PK11_MakePrivKey(slot,nullKey,PR_TRUE,key_ids[i],wincx);
2377 SECKEY_AddPrivateKeyToListTail(keys, privKey); 2377 SECKEY_AddPrivateKeyToListTail(keys, privKey);
2378 } 2378 }
2379 2379
2380 PORT_Free(key_ids); 2380 PORT_Free(key_ids);
2381 return keys; 2381 return keys;
2382 } 2382 }
2383 2383
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698