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 }
-
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
Checks a main-port socket's client certificate against the ambient realm.