зеркало из https://github.com/mozilla/gecko-dev.git
Export function to extract the public key from a subject key info
for JSS to use for CMS.
This commit is contained in:
Родитель
9f6b7cece3
Коммит
d530cbbec8
|
@ -33,7 +33,7 @@
|
|||
*
|
||||
* key.h - public data structures and prototypes for the private key library
|
||||
*
|
||||
* $Id: keyhi.h,v 1.2 2001/04/11 00:29:07 nelsonb%netscape.com Exp $
|
||||
* $Id: keyhi.h,v 1.3 2001/04/24 20:04:13 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#ifndef _KEYHI_H_
|
||||
|
@ -148,12 +148,20 @@ SECKEY_DecodeDERSubjectPublicKeyInfo(SECItem *spkider);
|
|||
extern CERTSubjectPublicKeyInfo *
|
||||
SECKEY_ConvertAndDecodeSubjectPublicKeyInfo(char *spkistr);
|
||||
|
||||
/*
|
||||
* extract the public key from a subject Public Key info structure.
|
||||
* (used by JSS).
|
||||
*/
|
||||
extern SECKEYPublicKey *
|
||||
SECKEY_ExtractPublicKey(CERTSubjectPublicKeyInfo *);
|
||||
|
||||
/*
|
||||
** Destroy a private key object.
|
||||
** "key" the object
|
||||
*/
|
||||
extern void SECKEY_DestroyPrivateKey(SECKEYPrivateKey *key);
|
||||
|
||||
|
||||
/*
|
||||
** Destroy a public key object.
|
||||
** "key" the object
|
||||
|
|
|
@ -935,6 +935,14 @@ seckey_ExtractPublicKey(CERTSubjectPublicKeyInfo *spki)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* required for JSS */
|
||||
SECKEYPublicKey *
|
||||
SECKEY_ExtractPublicKey(CERTSubjectPublicKeyInfo *spki)
|
||||
{
|
||||
return seckey_ExtractPublicKey(spki);
|
||||
}
|
||||
|
||||
SECKEYPublicKey *
|
||||
CERT_ExtractPublicKey(CERTCertificate *cert)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче