Skip to content

X509

[Source]

primitive val X509

Constructors

create

[Source]

new val create()
: X509 val^

Returns


Public Functions

valid_for_host

[Source]

Checks if an OpenSSL X509 certificate is valid for a given host.

fun box valid_for_host(
  cert: Pointer[X509 val] ref,
  host: String val)
: Bool val

Parameters

Returns


common_name

[Source]

Get the common name for the certificate. Raises an error if the common name contains any NULL bytes.

fun box common_name(
  cert: Pointer[X509 val] ref)
: String val ?

Parameters

Returns


all_names

[Source]

Returns an array of all names for the certificate. Any names containing NULL bytes are not included. This includes the common name and all subject alternate names.

fun box all_names(
  cert: Pointer[X509 val] ref)
: Array[String val] val

Parameters

Returns


eq

[Source]

fun box eq(
  that: X509 val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: X509 val)
: Bool val

Parameters

Returns