|
Greenbone Vulnerability Management Libraries 22.30.0
|
TLS certificate utilities. More...
Macros | |
| #define | G_LOG_DOMAIN "libgvm util" |
| GLib logging domain. | |
Functions | |
| gnutls_x509_crt_fmt_t | gvm_x509_format_from_data (const char *cert_data, size_t cert_len) |
| Try to determine the format (DER or PEM) of a x509 certificate. | |
| int | gvm_base64_to_gnutls_datum (const char *encoded, gnutls_datum_t *decoded_datum) |
| Decode a Base64 string to the contents of a gnutls_datum_t. | |
| void | gvm_x509_cert_list_free (gnutls_x509_crt_t *certs, unsigned int certs_count) |
| Frees a list of X509 certificates. | |
| gchar * | gvm_x509_privkey_to_pem (gnutls_x509_privkey_t privkey) |
| Export a GnuTLS x509 private key as a PEM formatted string. | |
| gchar * | gvm_x509_cert_list_to_pem (gnutls_x509_crt_t *certs, unsigned int certs_count) |
| Export a GnuTLS x509 cerificate list as a PEM formatted string. | |
| gchar * | gvm_x509_crl_to_pem (gnutls_x509_crl_t crl) |
| Export a GnuTLS x509 CRL as a PEM formatted string. | |
| int | gvm_pkcs12_to_pem (gnutls_pkcs12_t pkcs12, const char *passphrase, gchar **privkey_out, gchar **cert_chain_out, gchar **extra_certs_out, gchar **crl_out) |
| Convert GnuTLS PKCS12 data to a PEM formatted string. | |
TLS certificate utilities.
| #define G_LOG_DOMAIN "libgvm util" |
GLib logging domain.
| int gvm_base64_to_gnutls_datum | ( | const char * | encoded, |
| gnutls_datum_t * | decoded_datum ) |
Decode a Base64 string to the contents of a gnutls_datum_t.
| [in] | encoded | The Base64 data as a NUL-terminated string |
| [in,out] | decoded_datum | The datum struct to decode to. |
| int gvm_pkcs12_to_pem | ( | gnutls_pkcs12_t | pkcs12, |
| const char * | passphrase, | ||
| gchar ** | privkey_out, | ||
| gchar ** | cert_chain_out, | ||
| gchar ** | extra_certs_out, | ||
| gchar ** | crl_out ) |
Convert GnuTLS PKCS12 data to a PEM formatted string.
| [in] | pkcs12 | PKCS12 data to get data from |
| [in] | passphrase | Passphrase to decrypt PKCS12 data |
| [out] | privkey_out | Optional private key output |
| [out] | cert_chain_out | Optional certificate chain output |
| [out] | extra_certs_out | Optional extra certificates output |
| [out] | crl_out | Optional CRL output |
| void gvm_x509_cert_list_free | ( | gnutls_x509_crt_t * | certs, |
| unsigned int | certs_count ) |
Frees a list of X509 certificates.
| [in] | certs | The cerificate list to free. |
| [in] | certs_count | The number of certificates in the list. |
| gchar * gvm_x509_cert_list_to_pem | ( | gnutls_x509_crt_t * | certs, |
| unsigned int | certs_count ) |
Export a GnuTLS x509 cerificate list as a PEM formatted string.
| [in] | certs | The array of certificates to export |
| [in] | certs_count | The number of certificates to export |
| gchar * gvm_x509_crl_to_pem | ( | gnutls_x509_crl_t | crl | ) |
Export a GnuTLS x509 CRL as a PEM formatted string.
| [in] | crl | The certificate revocation list CRL |
| gnutls_x509_crt_fmt_t gvm_x509_format_from_data | ( | const char * | cert_data, |
| size_t | cert_len ) |
Try to determine the format (DER or PEM) of a x509 certificate.
| [in] | cert_data | The certificate data. |
| [in] | cert_len | Length of the certificate data. |
| gchar * gvm_x509_privkey_to_pem | ( | gnutls_x509_privkey_t | privkey | ) |
Export a GnuTLS x509 private key as a PEM formatted string.
| [in] | privkey | The private key to export. |