setCertificateVerifyProc

fun setCertificateVerifyProc(proc: (request: Request, callback: (verificationResult: Double) -> Unit) -> Unit?)(source)

Sets the certificate verify proc for session, the proc will be called with proc(request, callback) whenever a server certificate verification is requested. Calling callback(0) accepts the certificate, calling callback(-2) rejects it.

Calling setCertificateVerifyProc(null) will revert back to default certificate verify proc.

NOTE: The result of this procedure is cached by the network service.