Defines | |
#define | TQSL_SELECT_CERT_WITHKEYS 1 |
#define | TQSL_SELECT_CERT_EXPIRED 2 |
#define | TQSL_SELECT_CERT_SUPERCEDED 4 |
#define | TQSL_PK_TYPE_ERR 0 |
#define | TQSL_PK_TYPE_NONE 1 |
#define | TQSL_PK_TYPE_UNENC 2 |
#define | TQSL_PK_TYPE_ENC 3 |
Functions | |
DLLEXPORT int | tqsl_selectCertificates (tQSL_Cert **certlist, int *ncerts, const char *callsign, int dxcc, const tQSL_Date *date, const TQSL_PROVIDER *issuer, int flag) |
DLLEXPORT int | tqsl_getSelectedCertificate (tQSL_Cert *cert, const tQSL_Cert **certlist, int idx) |
DLLEXPORT int | tqsl_getCertificateKeyOnly (tQSL_Cert cert, int *keyonly) |
DLLEXPORT int | tqsl_getCertificateEncoded (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateSerial (tQSL_Cert cert, long *serial) |
DLLEXPORT int | tqsl_getCertificateIssuer (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateIssuerOrganization (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateIssuerOrganizationalUnit (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateCallSign (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateAROName (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateEmailAddress (tQSL_Cert cert, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateQSONotBeforeDate (tQSL_Cert cert, tQSL_Date *date) |
DLLEXPORT int | tqsl_getCertificateQSONotAfterDate (tQSL_Cert cert, tQSL_Date *date) |
DLLEXPORT int | tqsl_getCertificateNotBeforeDate (tQSL_Cert cert, tQSL_Date *date) |
DLLEXPORT int | tqsl_getCertificateNotAfterDate (tQSL_Cert cert, tQSL_Date *date) |
DLLEXPORT int | tqsl_getCertificateDXCCEntity (tQSL_Cert cert, int *dxcc) |
DLLEXPORT int | tqsl_getCertificateRequestAddress1 (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateRequestAddress2 (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateRequestCity (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateRequestState (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateRequestPostalCode (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificateRequestCountry (tQSL_Cert cert, char *str, int bufsiz) |
DLLEXPORT int | tqsl_getCertificatePrivateKeyType (tQSL_Cert cert) |
DLLEXPORT void | tqsl_freeCertificate (tQSL_Cert cert) |
DLLEXPORT int | tqsl_importTQSLFile (const char *file, int(*cb)(int type, const char *message, void *userdata), void *user) |
DLLEXPORT int | tqsl_getNumProviders (int *n) |
DLLEXPORT int | tqsl_getProvider (int idx, TQSL_PROVIDER *provider) |
DLLEXPORT int | tqsl_createCertRequest (const char *filename, TQSL_CERT_REQ *req, int(*pwcb)(char *pwbuf, int pwsize, void *userdata), void *user) |
DLLEXPORT int | tqsl_exportPKCS12File (tQSL_Cert cert, const char *filename, const char *p12password) |
DLLEXPORT int | tqsl_importPKCS12File (const char *filename, const char *p12password, const char *password, int(*pwcb)(char *buf, int bufsiz, void *userdata), int(*cb)(int type, const char *message, void *userdata), void *user) |
DLLEXPORT int | tqsl_deleteCertificate (tQSL_Cert cert) |
tQSL_Cert
objects. A tQSL_Cert
contains:
|
Create a certificate-request Gabbi file.
The
If If req->signer is not zero and the signing certificate requires a password, the password may be in req->signer_password, else signer_pwcb is called. |
|
Delete a certificate and private key |
|
Save a key pair and certificates to a file in PKCS12 format. The tQSL_Cert must be initialized for signing (see tqsl_beginSigning()) if the user certificate is being exported.
The supplied |
|
Free the memory used by the tQSL_Cert. Once this function is called, |
|
Get the ARO name string from a tQSL_Cert.
|
|
Get the ARO call sign string from a tQSL_Cert.
|
|
Get the DXCC entity number from a tQSL_Cert.
|
|
Get the email address from a tQSL_Cert.
|
|
Get the encoded certificate for inclusion in a GABBI file. |
|
Get the issuer (DN) string from a tQSL_Cert.
|
|
Get the issuer's organization name from a tQSL_Cert.
|
|
Get the issuer's organizational unit name from a tQSL_Cert.
|
|
Find out if the "certificate" is just a key pair. |
|
Get the certificate's not-after date from a tQSL_Cert.
|
|
Get the certificate's not-before date from a tQSL_Cert.
|
|
Determine the nature of the private key associated with a certificate.
|
|
Get the QSO not-after date from a tQSL_Cert.
|
|
Get the QSO not-before date from a tQSL_Cert.
|
|
Get the first address line from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the second address line from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the city from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the country from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the postal (ZIP) code from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the state from the certificate request used in applying for a tQSL_Cert certificate.
|
|
Get the issuer's serial number of the certificate. |
|
Get the number of certificate providers known to tqsllib. |
|
Get the information for a certificate provider.
|
|
Get a particulat certificate from the list returnded by tqsl_selectCertificates. This function exists principally to make it easier for VB programs to access the list of certificates. It is the caller's responsibility to ensure that 0 <= idx < ncerts (where ncerts is the value returned by tqsl_selectCertificates) |
|
Load certificates and a private key from a PKCS12 file. |
|
Import a Gabbi cert file received from a CA
The callback, cb(type, message);
|
|
Get a list of certificates Selects a set of certificates from the user's certificate store based on optional selection criteria. The function produces a list of tQSL_Cert objects.
Each of the tQSL_Cert objects in the list should be freed by calling tqsl_freeCertificate(). |