logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ne_ssl_readable_dname, ne_ssl_dname_cmp - SSL distinguished name handling

Description

       The ne_ssl_readable_dname function creates a single-line, human-readable string out of an ne_ssl_dname
       object. The returned string is malloc()-allocated, and must be free()d by the caller.

       The ne_ssl_dname_cmp function compares two distinguished names, and returns zero if they are equal, or
       non-zero otherwise.

Examples

       See ne_ssl_cert_subject for an example use of ne_ssl_readable_dname.

Name

       ne_ssl_readable_dname, ne_ssl_dname_cmp - SSL distinguished name handling

Return Value

ne_ssl_readable_dname returns a malloc-allocated string, and never NULL.

See Also

       ne_ssl_cert_subject

Synopsis

#include<ne_ssl.h>constchar*ne_ssl_readable_dname(constne_ssl_dname*dname);intne_ssl_dname_cmp(constne_ssl_dname*dn1,constne_ssl_dname*dn2);

See Also