iya-sts
    Preparing search index...
    checkSocket: (
        socket: any,
    ) =>
        | { error?: undefined; identity: any; ok: boolean; why?: undefined }
        | { error: any; identity: any; ok: boolean; why: any } = checkSocket

    Type Declaration

      • (
            socket: any,
        ):
            | { error?: undefined; identity: any; ok: boolean; why?: undefined }
            | { error: any; identity: any; ok: boolean; why: any }
      • Checks a main-port socket's client certificate against the ambient realm.

        Parameters

        • socket: any

          the TLS socket

        Returns
            | { error?: undefined; identity: any; ok: boolean; why?: undefined }
            | { error: any; identity: any; ok: boolean; why: any }

        { ok: true, identity } for no opinion or a certificate from this realm's authority, or { ok: false, identity, error, why } for a certificate issued here for something else or by another realm