ne_ssl_dname_cmp(3)

ne_ssl_dname_cmp3

Ssl distinguished name handling

Part of ne_ssl_readable_dname(3).

Usage

#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);

Overview

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.

Return value

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

Examples

See ne_ssl_cert_subject for an example use of ne_ssl_readable_dname.

Releases

9 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 8
  5. 9–10
  6. 11
  7. 12
  8. 13

From libneon27-dev 0.34.2-1 in Debian 13 (Trixie). Also shipped by libneon27-gnutls-dev. Parsed by carta from the page's man source.