Export function to extract the public key from a subject key info
for JSS to use for CMS. git-svn-id: svn://10.0.0.236/trunk@93005 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2591625fde
commit
4120984474
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user