xmpp: mellium.im/xmpp/x509 Index | Files

package x509

import "mellium.im/xmpp/x509"

Package x509 parses X.509-encoded keys and certificates.

Index

Package Files

x509.go

type Certificate Uses

type Certificate struct {
    *x509.Certificate

    SRVNames      []string
    XMPPAddresses []string
}

Certificate represents an X.509 certificate with additional fields for XMPP use.

func FromCertificate Uses

func FromCertificate(crt *x509.Certificate) (*Certificate, error)

FromCertificate parses the Subject Alternative Name from the provided x509.Certificate and creates a new Certificate with the extra fields populated.

func ParseCertificate Uses

func ParseCertificate(asn1Data []byte) (*Certificate, error)

ParseCertificate parses a single certificate from the given ASN.1 DER data.

Package x509 imports 4 packages (graph). Updated 2018-11-14. Refresh now. Tools for package owners.