gnutls_certificate_verification_profile_get_name - Linux
Overview
gnutls_certificate_verification_profile_get_name
retrieves the name associated with a GNUTLS certificate verification profile.
Syntax
gnutls_certificate_verification_profile_get_name(profile, name)
Parameters:
- profile: The GNUTLS certificate verification profile.
- name (out): An array that stores the name of the profile.
Options/Flags
None.
Examples
#include <gnutls/gnutls.h>
int main() {
gnutls_certificate_verification_profile_t profile;
gnutls_certificate_verification_profile_init(&profile);
char name[128];
gnutls_certificate_verification_profile_get_name(profile, name);
printf("Name of profile: %s\n", name);
gnutls_certificate_verification_profile_deinit(profile);
return 0;
}
Common Issues
The following error may occur:
- Gnutls error: This can indicate an issue with the profile or its configuration. Check the profile and ensure it is valid.
Integration
gnutls_certificate_verification_profile_get_name
can be used with other GNUTLS functions to manage certificate verification profiles.