-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 12.0.1.79
Go to the documentation of this file.
5 #ifndef GD_CREDENTIAL_H
6 #define GD_CREDENTIAL_H
14 # define GD_C_API __attribute__((visibility("default")))
172 struct GD_C_API GDX509;
367 const struct GDData* credential,
368 const char* password,
420 const struct GDData* credential,
421 const char* password,
540 size_t* credentialCount,
char * serialNumber
X.509 Serial Number field.
Definition: GDCredential.h:80
void GDCredential_importDone(void)
Finalize credential import.
const char * GDX509Certificate_subject_relative_name(const struct GDX509Certificate *certificate, const char *relative_name)
Return relative name from within a fully-qualified distinguished name of the subject.
char * alias
Alias name of the certificate if from device storage.
Definition: GDCredential.h:159
Definition: GDCredential.h:257
char * publicKeyMD5
MD5 hash of the public key.
Definition: GDCredential.h:89
size_t auxCount
The number of auxiliary certificates.
Definition: GDCredential.h:271
char * extendedKeyUsage
Extended key usage of the certificate.
Definition: GDCredential.h:151
void GDCredential_free(struct GDCredential *credentials, size_t credentialCount)
Free a returned credentials buffer.
X.509 Public Key Certificate.
Definition: GDCredential.h:48
struct GDCredential * GDCredential_find(const char *issuer, const char *serial)
Find a credential.
bool valid
Returns certificate validity.
Definition: GDCredential.h:139
char * issuer
X.509 Issuer field.
Definition: GDCredential.h:55
char * subjectAlternativeName
X.509 Subject Alternative Name field.
Definition: GDCredential.h:72
time_t notAfter
X.509 Validity: Not After date and time.
Definition: GDCredential.h:132
bool GDCredential_import(char **profileId, const struct GDData *credential, const char *password, struct GDError *error)
Import electronic certificate credentials from a PKCS #12 file.
int GDX509Certificate_days_until_renewal_due(const struct GDX509Certificate *certificate)
Days until the certificate is due for renewal.
void GDX509Certificate_free(struct GDX509Certificate *certificate)
Free a certificate.
bool GDCredential_list(const char *profileId, size_t *credentialCount, struct GDCredential **credentials, struct GDError *error)
List available credentials for a User Credential Profile.
struct GDX509Certificate * GDX509Certificate_create(const struct GDX509 *certificate)
Create a certificate.
const char * GDX509Certificate_issuer_relative_name(const struct GDX509Certificate *certificate, const char *relative_name)
Return relative name from within a fully-qualified distinguished name of the issuer.
char * subject
X.509 Subject field.
Definition: GDCredential.h:63
Data encapsulation structure.
Definition: GDCommon.h:140
time_t notBefore
X.509 Validity: Not Before date and time.
Definition: GDCredential.h:124
struct GDX509Certificate * auxCertificates
Auxiliary intermediate certificates.
Definition: GDCredential.h:282
struct GDX509Certificate * userCertificate
Leaf certificate.
Definition: GDCredential.h:263
bool GDCredential_importPEM(char **profileId, const struct GDData *credential, const char *password, struct GDError *error)
Import electronic certificate credentials from a PEM container.
bool GDCredential_undoImport(const char *profileId)
Remove all credentials for a given User Credential Profile.
Error structure.
Definition: GDCommon.h:114
bool GDCredential_remove_credential(const struct GDCredential *credential)
Remove an imported or device credential.
bool GDCredential_remove(const char *issuer, const char *serial)
Remove an imported or device credential.
int GDX509Certificate_days_until_expiry(const struct GDX509Certificate *certificate)
Days until the certificate expires.
char * certificateMD5
MD5 hash of the public key.
Definition: GDCredential.h:107
char * publicKeySHA1
SHA-1 hash of the public key.
Definition: GDCredential.h:98
char * keyUsage
Key usage of the certificate.
Definition: GDCredential.h:145
char * certificateSHA1
SHA-1 hash of the certificate.
Definition: GDCredential.h:116