}
/**
- * gnutls_openpgp_extract_certificate_dn - Extracts the userID
+ * gnutls_openpgp_extract_key_name - Extracts the userID
*
* @cert: the raw data that contains the OpenPGP public key.
* @dn: the structure to store the userID specific data in.
* Extracts the userID from the raw OpenPGP key.
**/
int
-gnutls_openpgp_extract_certificate_dn( const gnutls_datum *cert,
- gnutls_openpgp_name *dn )
+gnutls_openpgp_extract_key_name( const gnutls_datum *cert,
+ gnutls_openpgp_name *dn )
{
PKT pkt = NULL;
PKT_userid *uid = NULL;
}
/**
- * gnutls_openpgp_extract_certificate_version- Extracts the version
+ * gnutls_openpgp_extract_key_version - Extracts the version of the key.
*
* @cert: the raw data that contains the OpenPGP public key.
*
* Extract the version of the OpenPGP key.
**/
int
-gnutls_openpgp_extract_certificate_version( const gnutls_datum *cert )
+gnutls_openpgp_extract_key_version( const gnutls_datum *cert )
{
PKT pkt = NULL;
PKT_public_key *pk = NULL;
}
/**
- * gnutls_openpgp_extract_certificate_activation_time - Extract the timestamp
+ * gnutls_openpgp_extract_key_creation_time - Extract the timestamp
*
* @cert: the raw data that contains the OpenPGP public key.
*
* Returns the timestamp when the OpenPGP key was created.
**/
time_t
-gnutls_openpgp_extract_certificate_activation_time( const gnutls_datum *cert )
+gnutls_openpgp_extract_key_creation_time( const gnutls_datum *cert )
{
PKT pkt = NULL;
PKT_public_key *pk = NULL;
}
/**
- * gnutls_openpgp_extract_certificate_expiration_time - Extract the expire date
+ * gnutls_openpgp_extract_key_expiration_time - Extract the expire date
*
* @cert: the raw data that contains the OpenPGP public key.
*
* that the key doesn't expire at all.
**/
time_t
-gnutls_openpgp_extract_certificate_expiration_time( const gnutls_datum *cert )
+gnutls_openpgp_extract_key_expiration_time( const gnutls_datum *cert )
{
PKT pkt = NULL;
PKT_public_key *pk = NULL;
}
/**
- * gnutls_openpgp_verify_certificate - Verify all signatures on the key
+ * gnutls_openpgp_verify_key - Verify all signatures on the key
*
* @cert_list: the structure that holds the certificates.
* @cert_list_lenght: the items in the cert_list.
* A return value of '0' means that all checked signatures are good.
**/
int
-gnutls_openpgp_verify_certificate( const gnutls_datum* cert_list,
- int cert_list_length)
+gnutls_openpgp_verify_key( const gnutls_datum* cert_list,
+ int cert_list_length)
{
PKT pkt = NULL;
#endif /* HAVE_LIBOPENCDK */
+
GNUTLS_CERTIFICATE_CREDENTIALS res,
char* CERTFILE,
char* KEYFILE);
-int gnutls_openpgp_extract_certificate_dn( const gnutls_datum *cert,
- gnutls_openpgp_name *dn);
-int gnutls_openpgp_extract_certificate_version( const gnutls_datum *cert );
-time_t gnutls_openpgp_extract_certificate_activation_time(
- const gnutls_datum
- *cert );
-time_t gnutls_openpgp_extract_certificate_expiration_time(
- const gnutls_datum
- *cert );
-int gnutls_openpgp_verify_certificate( const gnutls_datum* cert_list,
- int cert_list_length);
+
+int gnutls_openpgp_extract_key_name( const gnutls_datum *cert,
+ gnutls_openpgp_name *dn );
+
+int gnutls_openpgp_extract_key_version( const gnutls_datum *cert );
+
+time_t gnutls_openpgp_extract_key_creation_time( const gnutls_datum *cert );
+
+time_t gnutls_openpgp_extract_key_expiration_time( const gnutls_datum *cert );
+
+int gnutls_openpgp_verify_key( const gnutls_datum* cert_list,
+ int cert_list_length );
int gnutls_openpgp_fingerprint( const gnutls_datum *cert, opaque *fpr,
size_t *fprlen );
/* internal */
int _gnutls_openpgp_cert2gnutls_cert(gnutls_cert *cert, gnutls_datum raw);
-
-
#endif /*GNUTLS_OPENPGP_H*/
+
+
+
+
+