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

    Type Declaration

      • (
            socket: any,
            options: 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

        • options: any

          { stored: true } to resolve an outside authority's certificate to the entry storing it (#1061); realm to ask in a realm other than the ambient one

        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, with stored, an outside certificate stored on one entry), or { ok: false, identity, error, why } for a certificate issued here for something else or by another realm, or an outside one not stored on exactly one entry