String

internal extension String

An extension to String that adds initializer from a BIO buffer pointer from OpenSSL.

  • Initialize a String from data read from an OpenSSL BIO object.

    Important

    If the BIO object does not contain valid data or reading it fails, this initializer will result in a fatal error.

    Declaration

    Swift

    init(bio: OpaquePointer)

    Parameters

    bio

    An OpaquePointer representing the OpenSSL BIO object to read data from.