|
pam_pkcs11 0.6.13
|
#include "seccomon.h"#include "secitem.h"#include "prerror.h"#include "base64.h"#include "key.h"#include "secpkcs7.h"#include "secasn1.h"#include "secder.h"#include <stdio.h>#include "secerr.h"#include "sslerr.h"Go to the source code of this file.
Data Structures | |
| struct | secuPWData |
| struct | secuCommandFlag |
| struct | secuCommand |
Macros | |
| #define | SEC_CT_PRIVATE_KEY "private-key" |
| #define | SEC_CT_PUBLIC_KEY "public-key" |
| #define | SEC_CT_CERTIFICATE "certificate" |
| #define | SEC_CT_CERTIFICATE_REQUEST "certificate-request" |
| #define | SEC_CT_PKCS7 "pkcs7" |
| #define | SEC_CT_CRL "crl" |
| #define | NS_CERTREQ_HEADER "-----BEGIN NEW CERTIFICATE REQUEST-----" |
| #define | NS_CERTREQ_TRAILER "-----END NEW CERTIFICATE REQUEST-----" |
| #define | NS_CERT_HEADER "-----BEGIN CERTIFICATE-----" |
| #define | NS_CERT_TRAILER "-----END CERTIFICATE-----" |
| #define | NS_CRL_HEADER "-----BEGIN CRL-----" |
| #define | NS_CRL_TRAILER "-----END CRL-----" |
Typedefs | |
| typedef int(*) | SECU_PPFunc(FILE *out, SECItem *item, char *msg, int level) |
| typedef SECStatus(*) | EXTEN_EXT_VALUE_ENCODER(PRArenaPool *extHandleArena, void *value, SECItem *encodedValue) |
Enumerations | |
| enum | SignAndEncodeFuncExitStat { noKeyFound = 1 , noSignatureMatch = 2 , failToEncode = 3 , failToSign = 4 , noMem = 5 } |
Functions | |
| SECStatus | SEC_AddPermCertificate (CERTCertDBHandle *handle, SECItem *derCert, char *nickname, CERTCertTrust *trust) |
| SECStatus | SECU_ChangePW (PK11SlotInfo *slot, char *passwd, char *pwFile) |
| PRBool | SEC_CheckPassword (char *password) |
| PRBool | SEC_BlindCheckPassword (char *password) |
| char * | SEC_GetPassword (FILE *in, FILE *out, char *msg, PRBool(*chkpw)(char *)) |
| char * | SECU_FilePasswd (PK11SlotInfo *slot, PRBool retry, void *arg) |
| char * | SECU_GetPasswordString (void *arg, char *prompt) |
| SECStatus | SEC_WriteDongleFile (int fd, char *pw) |
| char * | SEC_ReadDongleFile (int fd) |
| char * | SECU_AppendFilenameToDir (char *dir, char *filename) |
| char * | SECU_DefaultSSLDir (void) |
| char * | SECU_ConfigDirectory (const char *base) |
| int | SECU_GetClientAuthData (void *arg, PRFileDesc *fd, struct CERTDistNamesStr *caNames, struct CERTCertificateStr **pRetCert, struct SECKEYPrivateKeyStr **pRetKey) |
| void | SECU_PrintError (char *progName, char *msg,...) |
| void | SECU_PrintSystemError (char *progName, char *msg,...) |
| const char * | SECU_Strerror (PRErrorCode errNum) |
| void | SECU_printCertProblems (FILE *outfile, CERTCertDBHandle *handle, CERTCertificate *cert, PRBool checksig, SECCertificateUsage certUsage, void *pinArg, PRBool verbose) |
| SECStatus | SECU_FileToItem (SECItem *dst, PRFileDesc *src) |
| SECStatus | SECU_TextFileToItem (SECItem *dst, PRFileDesc *src) |
| SECStatus | SECU_ReadDERFromFile (SECItem *der, PRFileDesc *inFile, PRBool ascii) |
| void | SECU_Indent (FILE *out, int level) |
| void | SECU_PrintInteger (FILE *out, SECItem *i, char *m, int level) |
| SECOidTag | SECU_PrintObjectID (FILE *out, SECItem *oid, char *m, int level) |
| void | SECU_PrintAlgorithmID (FILE *out, SECAlgorithmID *a, char *m, int level) |
| void | SECU_PrintAsHex (FILE *out, SECItem *i, const char *m, int level) |
| void | SECU_PrintBuf (FILE *out, const char *msg, const void *vp, int len) |
| void | SECU_PrintUTCTime (FILE *out, SECItem *t, char *m, int level) |
| void | SECU_PrintGeneralizedTime (FILE *out, SECItem *t, char *m, int level) |
| void | SECU_PrintTimeChoice (FILE *out, SECItem *t, char *m, int level) |
| SECStatus | SECU_PrintCertNickname (CERTCertListNode *cert, void *data) |
| SECStatus | SECU_PrintCertificateNames (CERTCertDBHandle *handle, PRFileDesc *out, PRBool sortByName, PRBool sortByTrust) |
| int | SECU_CheckCertNameExists (CERTCertDBHandle *handle, char *nickname) |
| int | SECU_PrintCertificateRequest (FILE *out, SECItem *der, char *m, int level) |
| int | SECU_PrintCertificate (FILE *out, SECItem *der, char *m, int level) |
| void | SECU_PrintTrustFlags (FILE *out, CERTCertTrust *trust, char *m, int level) |
| int | SECU_PrintPublicKey (FILE *out, SECItem *der, char *m, int level) |
| int | SECU_PrintFingerprints (FILE *out, SECItem *derCert, char *m, int level) |
| int | SECU_PrintPKCS7ContentInfo (FILE *out, SECItem *der, char *m, int level) |
| SECStatus | SECU_PKCS11Init (PRBool readOnly) |
| int | SECU_PrintSignedData (FILE *out, SECItem *der, char *m, int level, SECU_PPFunc inner) |
| int | SECU_PrintCrl (FILE *out, SECItem *der, char *m, int level) |
| void | SECU_PrintCRLInfo (FILE *out, CERTCrl *crl, char *m, int level) |
| void | SECU_PrintString (FILE *out, SECItem *si, char *m, int level) |
| void | SECU_PrintAny (FILE *out, SECItem *i, char *m, int level) |
| void | SECU_PrintPolicy (FILE *out, SECItem *value, char *msg, int level) |
| void | SECU_PrintPrivKeyUsagePeriodExtension (FILE *out, SECItem *value, char *msg, int level) |
| void | SECU_PrintExtensions (FILE *out, CERTCertExtension **extensions, char *msg, int level) |
| void | SECU_PrintName (FILE *out, CERTName *name, char *msg, int level) |
| SECItem * | SECU_GetPBEPassword (void *arg) |
| char * | SECU_GetModulePassword (PK11SlotInfo *slot, PRBool retry, void *arg) |
| SECStatus | DER_PrettyPrint (FILE *out, SECItem *it, PRBool raw) |
| void | SEC_Init (void) |
| char * | SECU_SECModDBName (void) |
| void | SECU_PrintPRandOSError (char *progName) |
| SECStatus | SECU_RegisterDynamicOids (void) |
| SECOidTag | SECU_StringToSignatureAlgTag (const char *alg) |
| SECStatus | SECU_StoreCRL (PK11SlotInfo *slot, SECItem *derCrl, PRFileDesc *outFile, int ascii, char *url) |
| SECStatus | SECU_DerSignDataCRL (PRArenaPool *arena, CERTSignedData *sd, unsigned char *buf, int len, SECKEYPrivateKey *pk, SECOidTag algID) |
| SECStatus | SECU_SignAndEncodeCRL (CERTCertificate *issuer, CERTSignedCrl *signCrl, SECOidTag hashAlgTag, SignAndEncodeFuncExitStat *resCode) |
| SECStatus | SECU_CopyCRL (PRArenaPool *destArena, CERTCrl *destCrl, CERTCrl *srcCrl) |
| CERTAuthKeyID * | SECU_FindCRLAuthKeyIDExten (PRArenaPool *arena, CERTSignedCrl *crl) |
| CERTCertificate * | SECU_FindCrlIssuer (CERTCertDBHandle *dbHandle, SECItem *subject, CERTAuthKeyID *id, PRTime validTime) |
| SECStatus | SECU_EncodeAndAddExtensionValue (PRArenaPool *arena, void *extHandle, void *value, PRBool criticality, int extenType, EXTEN_EXT_VALUE_ENCODER EncodeValueFn) |
| SECStatus | SECU_ParseCommandLine (int argc, char **argv, char *progName, secuCommand *cmd) |
| char * | SECU_GetOptionArg (secuCommand *cmd, int optionNum) |
| char * | SECU_ErrorString (int16 err) |
| char * | SECU_ErrorStringRaw (int16 err) |
| void | printflags (char *trusts, unsigned int flags) |
| int | ffs (unsigned int i) |
| #define NS_CERTREQ_HEADER "-----BEGIN NEW CERTIFICATE REQUEST-----" |
| #define NS_CERTREQ_TRAILER "-----END NEW CERTIFICATE REQUEST-----" |
| typedef SECStatus(*) EXTEN_EXT_VALUE_ENCODER(PRArenaPool *extHandleArena, void *value, SECItem *encodedValue) |
| typedef int(*) SECU_PPFunc(FILE *out, SECItem *item, char *msg, int level) |
|
extern |
References DER_PrettyPrint().
Referenced by DER_PrettyPrint().
| void printflags | ( | char * | trusts, |
| unsigned int | flags ) |
References printflags().
Referenced by printflags().
|
extern |
References SEC_AddPermCertificate().
Referenced by SEC_AddPermCertificate().
|
extern |
References SEC_BlindCheckPassword().
Referenced by SEC_BlindCheckPassword().
|
extern |
References SEC_CheckPassword().
Referenced by SEC_CheckPassword().
|
extern |
References SEC_GetPassword().
Referenced by SEC_GetPassword().
|
extern |
References SEC_Init().
Referenced by SEC_Init().
|
extern |
References SEC_ReadDongleFile().
Referenced by SEC_ReadDongleFile().
|
extern |
References SEC_WriteDongleFile().
Referenced by SEC_WriteDongleFile().
| char * SECU_AppendFilenameToDir | ( | char * | dir, |
| char * | filename ) |
References SECU_AppendFilenameToDir().
Referenced by SECU_AppendFilenameToDir().
| SECStatus SECU_ChangePW | ( | PK11SlotInfo * | slot, |
| char * | passwd, | ||
| char * | pwFile ) |
References SECU_ChangePW().
Referenced by SECU_ChangePW().
| int SECU_CheckCertNameExists | ( | CERTCertDBHandle * | handle, |
| char * | nickname ) |
References SECU_CheckCertNameExists().
Referenced by SECU_CheckCertNameExists().
|
extern |
References SECU_ConfigDirectory().
Referenced by SECU_ConfigDirectory().
|
extern |
References SECU_CopyCRL().
Referenced by SECU_CopyCRL().
|
extern |
References SECU_DefaultSSLDir().
Referenced by SECU_DefaultSSLDir().
|
extern |
References SECU_DerSignDataCRL().
Referenced by SECU_DerSignDataCRL().
| SECStatus SECU_EncodeAndAddExtensionValue | ( | PRArenaPool * | arena, |
| void * | extHandle, | ||
| void * | value, | ||
| PRBool | criticality, | ||
| int | extenType, | ||
| EXTEN_EXT_VALUE_ENCODER | EncodeValueFn ) |
References SECU_EncodeAndAddExtensionValue().
Referenced by SECU_EncodeAndAddExtensionValue().
| char * SECU_ErrorString | ( | int16 | err | ) |
References SECU_ErrorString().
Referenced by SECU_ErrorString().
| char * SECU_ErrorStringRaw | ( | int16 | err | ) |
References SECU_ErrorStringRaw().
Referenced by SECU_ErrorStringRaw().
| char * SECU_FilePasswd | ( | PK11SlotInfo * | slot, |
| PRBool | retry, | ||
| void * | arg ) |
References SECU_FilePasswd().
Referenced by SECU_FilePasswd().
|
extern |
References SECU_FileToItem().
Referenced by SECU_FileToItem().
| CERTAuthKeyID * SECU_FindCRLAuthKeyIDExten | ( | PRArenaPool * | arena, |
| CERTSignedCrl * | crl ) |
References SECU_FindCRLAuthKeyIDExten().
Referenced by SECU_FindCRLAuthKeyIDExten().
| CERTCertificate * SECU_FindCrlIssuer | ( | CERTCertDBHandle * | dbHandle, |
| SECItem * | subject, | ||
| CERTAuthKeyID * | id, | ||
| PRTime | validTime ) |
References SECU_FindCrlIssuer().
Referenced by SECU_FindCrlIssuer().
|
extern |
References SECU_GetClientAuthData().
Referenced by SECU_GetClientAuthData().
|
extern |
References SECU_GetModulePassword().
Referenced by SECU_GetModulePassword().
| char * SECU_GetOptionArg | ( | secuCommand * | cmd, |
| int | optionNum ) |
References SECU_GetOptionArg().
Referenced by SECU_GetOptionArg().
| char * SECU_GetPasswordString | ( | void * | arg, |
| char * | prompt ) |
References SECU_GetPasswordString().
Referenced by SECU_GetPasswordString().
|
extern |
References SECU_GetPBEPassword().
Referenced by SECU_GetPBEPassword().
|
extern |
References SECU_Indent().
Referenced by SECU_Indent().
| SECStatus SECU_ParseCommandLine | ( | int | argc, |
| char ** | argv, | ||
| char * | progName, | ||
| secuCommand * | cmd ) |
References SECU_ParseCommandLine().
Referenced by SECU_ParseCommandLine().
|
extern |
References SECU_PKCS11Init().
Referenced by SECU_PKCS11Init().
|
extern |
References SECU_PrintAlgorithmID().
Referenced by SECU_PrintAlgorithmID().
|
extern |
References SECU_PrintAny().
Referenced by SECU_PrintAny().
|
extern |
References SECU_PrintAsHex().
Referenced by SECU_PrintAsHex().
|
extern |
References SECU_PrintBuf().
Referenced by SECU_PrintBuf().
|
extern |
References SECU_PrintCertificate().
Referenced by SECU_PrintCertificate().
|
extern |
References SECU_PrintCertificateNames().
Referenced by SECU_PrintCertificateNames().
|
extern |
References SECU_PrintCertificateRequest().
Referenced by SECU_PrintCertificateRequest().
|
extern |
References SECU_PrintCertNickname().
Referenced by SECU_PrintCertNickname().
|
extern |
References SECU_printCertProblems().
Referenced by SECU_printCertProblems().
|
extern |
References SECU_PrintCrl().
Referenced by SECU_PrintCrl().
|
extern |
References SECU_PrintCRLInfo().
Referenced by SECU_PrintCRLInfo().
|
extern |
References SECU_PrintError().
Referenced by SECU_PrintError().
|
extern |
References SECU_PrintExtensions().
Referenced by SECU_PrintExtensions().
|
extern |
References SECU_PrintFingerprints().
Referenced by SECU_PrintFingerprints().
|
extern |
References SECU_PrintGeneralizedTime().
Referenced by SECU_PrintGeneralizedTime().
|
extern |
References SECU_PrintInteger().
Referenced by SECU_PrintInteger().
|
extern |
References SECU_PrintName().
Referenced by SECU_PrintName().
|
extern |
References SECU_PrintObjectID().
Referenced by SECU_PrintObjectID().
|
extern |
References SECU_PrintPKCS7ContentInfo().
Referenced by SECU_PrintPKCS7ContentInfo().
|
extern |
References SECU_PrintPolicy().
Referenced by SECU_PrintPolicy().
|
extern |
References SECU_PrintPRandOSError().
Referenced by SECU_PrintPRandOSError().
|
extern |
References SECU_PrintPrivKeyUsagePeriodExtension().
Referenced by SECU_PrintPrivKeyUsagePeriodExtension().
|
extern |
References SECU_PrintPublicKey().
Referenced by SECU_PrintPublicKey().
|
extern |
References SECU_PrintSignedData().
Referenced by SECU_PrintSignedData().
|
extern |
References SECU_PrintString().
Referenced by SECU_PrintString().
|
extern |
References SECU_PrintSystemError().
Referenced by SECU_PrintSystemError().
|
extern |
References SECU_PrintTimeChoice().
Referenced by SECU_PrintTimeChoice().
|
extern |
References SECU_PrintTrustFlags().
Referenced by SECU_PrintTrustFlags().
|
extern |
References SECU_PrintUTCTime().
Referenced by SECU_PrintUTCTime().
|
extern |
References SECU_ReadDERFromFile().
Referenced by SECU_ReadDERFromFile().
|
extern |
References SECU_RegisterDynamicOids().
Referenced by SECU_RegisterDynamicOids().
|
extern |
References SECU_SECModDBName().
Referenced by SECU_SECModDBName().
|
extern |
References SECU_SignAndEncodeCRL().
Referenced by SECU_SignAndEncodeCRL().
|
extern |
References SECU_StoreCRL().
Referenced by SECU_StoreCRL().
|
extern |
References SECU_Strerror().
Referenced by SECU_Strerror().
|
extern |
References SECU_StringToSignatureAlgTag().
Referenced by SECU_StringToSignatureAlgTag().
|
extern |
References SECU_TextFileToItem().
Referenced by SECU_TextFileToItem().