| RSA BSAFE Cert-C |
Certificate Components for C |
| Crypto-C 6.2.1 Developer's Guide | ||
| Search |
The application should call these routines rather than directly calling the SERVICE_HANDLER functions.
#include "basetype.h"
#include "bsafe.h"
Go to the source code of this file.
Functions | |
| void | C_FreeIterator (DB_ITERATOR *dbIterator) |
Frees a database iterator previously created by one of the C_SelectFirst*() functions. More... | |
| int | C_InsertCert (SERVICE database, CERT_OBJ cert) |
| Inserts the certificate into the database or databases that are bound to the service handle. More... | |
| int | C_InsertCertList (SERVICE database, LIST_OBJ certs) |
| Inserts a list of certificates into the database or databases bound to the service handle. More... | |
| int | C_InsertCRL (SERVICE database, CRL_OBJ crl) |
| Inserts a CRL into the database or databases bound to the service handle. More... | |
| int | C_InsertCRLList (SERVICE database, LIST_OBJ crlList) |
| Inserts a list of CRLs into a database or databases bound to the service handle. More... | |
| int | C_InsertPrivateKey (SERVICE database, CERT_OBJ cert, B_KEY_OBJ privateKey) |
| Inserts a private key into the database or databases bound to the service handle. More... | |
| int | C_InsertPrivateKeyBySPKI (SERVICE database, ITEM *spki, B_KEY_OBJ privateKey) |
| Inserts a private key into the database or databases bound to the service handle. More... | |
| int | C_SelectCertByIssuerSerial (SERVICE database, NAME_OBJ issuerName, ITEM *serialNumber, LIST_OBJ certList) |
| Retrieves the certificate, identified by the specified issuer name and serial number, from the database or databases bound to the service handle. More... | |
| int | C_SelectCertBySubject (SERVICE database, NAME_OBJ subjectName, LIST_OBJ certList) |
| Retrieves one or more certificates, identified by the specified subject name, from the database or databases bound to the service handle. More... | |
| int | C_SelectCertByExtensions (SERVICE database, NAME_OBJ baseName, EXTENSIONS_OBJ extensions, LIST_OBJ certList) |
| Retrieves one or more certificates, identified by the specified extensions and base subject name, from the database or databases bound to the service handle. More... | |
| int | C_SelectFirstCert (SERVICE database, DB_ITERATOR *dbIterator, LIST_OBJ certList) |
| Retrieves the first certificate from the database or databases bound to the service handle, and adds a copy of the certificate to the certificate list. More... | |
| int | C_SelectNextCert (DB_ITERATOR *dbIterator, LIST_OBJ certList) |
| Retrieves the next certificate from the database or databases bound to the iterator and adds a copy of the certificate to the certificate list. More... | |
| int | C_SelectCRLByIssuerTime (SERVICE database, NAME_OBJ issuerName, UINT4 time, LIST_OBJ crlList) |
| Retrieves a CRL, identified by the specified issuer name and time, from the database or databases bound to the service handle. More... | |
| int | C_SelectFirstCRL (SERVICE database, DB_ITERATOR *dbIterator, LIST_OBJ crlList) |
| Retrieves the first CRL from the database or databases bound to the service handle, and adds a copy of the CRL to the CRL list. More... | |
| int | C_SelectNextCRL (DB_ITERATOR *dbIterator, LIST_OBJ crlList) |
| Retrieves the next CRL from the database or databases bound to the iterator, and adds a copy of the CRL to the CRL list. More... | |
| int | C_SelectPrivateKeyByCert (SERVICE database, CERT_OBJ cert, B_KEY_OBJ privateKey) |
| Retrieves the private key, identified by the specified certificate, from the database or databases bound to the service handle. More... | |
| int | C_SelectPrivateKeyBySPKI (SERVICE database, ITEM *spki, B_KEY_OBJ privateKey) |
| Retrieves the private key, identified by the specified subject's public key identifier, from the database or databases bound to the service handle. More... | |
| int | C_SelectFirstPrivateKey (SERVICE database, DB_ITERATOR *dbIterator, B_KEY_OBJ privateKey) |
| Retrieves the first private key from the database or databases bound to the service handle. More... | |
| int | C_SelectNextPrivateKey (DB_ITERATOR *dbIterator, B_KEY_OBJ privateKey) |
| Retrieves the next private key from the database or databases bound to the iterator. More... | |
| int | C_DeleteCert (SERVICE database, NAME_OBJ issuerName, ITEM *serialNumber) |
| Deletes the certificate, identified by the specified issuer name and serial number, from the database or databases bound to the service handle. More... | |
| int | C_DeleteCRL (SERVICE database, NAME_OBJ issuerName, UINT4 lastUpdate) |
| Deletes the CRL, identified by the specified issuer name and last-update time, from the database or databases bound to the service handle. More... | |
| int | C_DeletePrivateKey (SERVICE database, CERT_OBJ cert) |
| Deletes the private key, identified by the specified certificate, from the database or databases bound to the service handle. More... | |
| int | C_DeletePrivateKeyBySPKI (SERVICE database, ITEM *spki) |
| Deletes the private key, identified by the specified subject public key identifier, from the database or databases bound to the service handle. More... | |
| int | C_SelectCertByAttributes (SERVICE database, NAME_OBJ baseName, ATTRIBUTES_OBJ attributes, LIST_OBJ certList) |
| Retrieves one or more certificates, identified by the specified attributes and base subject name, from the database or databases bound to the service handle. More... | |
|
||||||||||||||||
|
Deletes the certificate, identified by the specified issuer name and serial number, from the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to delete the certificate from all of the service providers, in the order in which they were bound.
|
|
||||||||||||||||
|
Deletes the CRL, identified by the specified issuer name and last-update time, from the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to delete the matching CRL from all of the service providers, in the order in which they were bound.
|
|
||||||||||||
|
Deletes the private key, identified by the specified certificate, from the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to delete the key from all of the service providers, in the order in which they were bound.
|
|
||||||||||||
|
Deletes the private key, identified by the specified subject public key identifier, from the database or databases bound to the service handle. If more than one service-provider instance has been bound to the service handle, Cert-C attempts to delete the key from all of the service providers, in the order in which they were bound.
|
|
|
Frees a database iterator previously created by one of the
|
|
||||||||||||
|
Inserts the certificate into the database or databases that are bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to insert the certificate into each instance. If a given certificate is already in the database (as determined by matching issuer names and serial numbers), it is not added again. This is considered equivalent to a successful insertion of the certificate into the database.
|
|
||||||||||||
|
Inserts a list of certificates into the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to insert the list of certificates into each instance. If a given certificate is already in the database (as determined by matching issuer names and serial numbers), it is not added again. This is considered equivalent to a successful insertion of the certificate into the database.
|
|
||||||||||||
|
Inserts a CRL into the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to insert the CRL into each instance. If a given CRL is already in the database (as determined by matching issuer names and last-update times), it is not added again. This is considered equivalent to a successful insertion of the CRL into the database.
|
|
||||||||||||
|
Inserts a list of CRLs into a database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to insert the CRLs into each instance. If a given CRL is already in the database (as determined by matching issuer names and last-update times), it is not added again. This is considered equivalent to a successful insertion of the CRL into the database.
|
|
||||||||||||||||
|
Inserts a private key into the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to insert the key into each instance. If a given key is already in the database, it is not added again. This is considered equivalent to a successful insertion of the key into the database.
|
|
||||||||||||||||
|
Inserts a private key into the database or databases bound to the service handle. The private key is identified by the corresponding subject public key identifier. If more than one service-provider instance has been bound to the service handle, Cert-C attempts to insert the key into each instance. If a given key is already in the database, it is not added again. This is considered equivalent to a successful insertion of the key into the database.
|
|
||||||||||||||||||||
|
Retrieves one or more certificates, identified by the specified attributes and base subject name, from the database or databases bound to the service handle. It then adds a copy of each matching certificate to the certificate list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve matching certificates from all service providers, in the order in which they were bound. If a copy of a given certificate is already in the certificate list (as determined by matching issuer names and serial numbers), it is not added again.
|
|
||||||||||||||||||||
|
Retrieves one or more certificates, identified by the specified extensions and base subject name, from the database or databases bound to the service handle. It then adds a copy of each matching certificate to the certificate list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve matching certificates from all service providers, in the order in which they were bound. If a copy of a given certificate is already in the list (as determined by matching issuer names and serial numbers), it is not added again.
|
|
||||||||||||||||||||
|
Retrieves the certificate, identified by the specified issuer name and serial number, from the database or databases bound to the service handle. It then adds a copy of the certificate to the certificate list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the certificate from each service provider, in the order in which they were bound, until the certificate is located.
|
|
||||||||||||||||
|
Retrieves one or more certificates, identified by the specified subject name, from the database or databases bound to the service handle. It then adds a copy of each matching certificate to the certificate list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve matching certificates from all service providers, in the order in which they were bound. If a copy of a given certificate is already in the list (as determined by matching issuer names and serial numbers), it is not added again.
|
|
||||||||||||||||||||
|
Retrieves a CRL, identified by the specified issuer name and time, from the database or databases bound to the service handle. It then adds a copy of the matching CRL to the CRL list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the matching CRL from all of the service providers, in the order in which they were bound. If a copy of the CRL is already in the list (as determined by matching issuer names and last-update times), it is not added again.
|
|
||||||||||||||||
|
Retrieves the first certificate from the database or databases bound to the service handle, and adds a copy of the certificate to the certificate list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the first certificate from all of the service providers. It does this in the order in which the certificates were bound, until a certificate is successfully retrieved. If a copy of the certificate is already in the list (as determined by matching issuer names and serial numbers), it is not added again.
|
|
||||||||||||||||
|
Retrieves the first CRL from the database or databases bound to the service handle, and adds a copy of the CRL to the CRL list. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the first CRL from all of the service providers, in the order in which they were bound, until a CRL is successfully retrieved. If a copy of the CRL is already in the list (as determined by matching issuer names and last-update times), it is not added again.
|
|
||||||||||||||||
|
Retrieves the first private key from the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the first private key from all of the service providers, in the order in which they were bound, until a private key is successfully retrieved.
|
|
||||||||||||
|
Retrieves the next certificate from the database or databases bound to the iterator and adds a copy of the certificate to the certificate list. If more than one service-provider instance is bound to the iterator, Cert-C attempts to retrieve the next certificate from all the service providers, in the order in which they were bound, until a certificate is successfully retrieved. If a copy of the certificate is already in the list (as determined by matching issuer names and serial numbers), it is not added again.
|
|
||||||||||||
|
Retrieves the next CRL from the database or databases bound to the iterator, and adds a copy of the CRL to the CRL list. If more than one service-provider instance is bound to the iterator, Cert-C attempts to retrieve the first CRL from all of the service providers, in the order in which they were bound, until a CRL is successfully retrieved. If a copy of the CRL is already in the list (as determined by matching issuer names and last-update times), it is not added again.
|
|
||||||||||||
|
Retrieves the next private key from the database or databases bound to the iterator. If more than one service-provider instance is bound to the iterator, Cert-C attempts to retrieve the next private key from all of the service providers, in the order in which they were bound, until a private key is successfully retrieved.
|
|
||||||||||||||||
|
Retrieves the private key, identified by the specified certificate, from the database or databases bound to the service handle. If more than one service-provider instance is bound to the service handle, Cert-C attempts to retrieve the key from all of the service providers, in the order in which they were bound, until a private key is retrieved successfully.
|
|
||||||||||||||||
|
Retrieves the private key, identified by the specified subject's public key identifier, from the database or databases bound to the service handle. If more than one service-provider instance has been bound to the service handle, Cert-C attempts to retrieve the private key from all of the service providers, in the order in which they were bound, until a private key is retrieved successfully.
|