NE_SSL_DNAME(3) neon API reference NE_SSL_DNAME(3)NAME
ne_ssl_readable_dname, ne_ssl_dname_cmp - SSL distinguished name han‐
dling
SYNOPSIS
#include <ne_ssl.h>
const char *ne_ssl_readable_dname (const ne_ssl_dname *dname);
int ne_ssl_dname_cmp (const ne_ssl_dname *dn1,
const ne_ssl_dname *dn2);
DESCRIPTION
The ne_ssl_readable_dname function creates a single-line, human-read‐
able string out of an ne_ssl_dname object. The returned string is mal‐
loc()-allocated, and must be free()d by the caller.
The ne_ssl_dname_cmp function compares two distinguished names, and re‐
turns zero if they are equal, or non-zero otherwise.
RETURN VALUEne_ssl_readable_dname returns a malloc-allocated string, and never
NULL.
EXAMPLES
See ne_ssl_cert_subject(3) for an example use of ne_ssl_readable_dname.
SEE ALSOne_ssl_cert_subject(3)AUTHOR
Joe Orton <neon@webdav.org>.
neon 0.25.5 20 January 2006 NE_SSL_DNAME(3)