folly::ssl::OpenSSLCertUtils::derDecode

Decode the DER representation of an X509 certificate.

Synopsis

Declared in <folly/ssl/OpenSSLCertUtils.h>

static
/* implementation-defined */
derDecode(ByteRange range);

Description

Throws on error (if a valid certificate can't be decoded).

Return Value

The decoded certificate.

Parameters

NameDescription
rangeThe DER-encoded certificate bytes.