function resolveCertificate(records, hostname) {
    var ret;
    records.forEach(function (record) {
        if (!(record instanceof records_1.HTTPSRecord))
            return;
        if (record.match.test(hostname)) {
            ret = record.credentials;
            return false;
        }
    });
    return ret;
}
/**
 * Resolve the credentials for the given hostname. Used by the SNI Callback.
 *
 * @private
 * @param hostname Requested hostname
 */
Resolve the credentials for the given hostname. Used by the SNI Callback.
@private
@param hostname Requested hostname
Resolve the credentials for the given hostname . Used by the SNI Callback . @private @param hostname Requested hostname
function resolveCertificate(records, hostname) {
    var ret;
    records.forEach(function (record) {
        if (!(record instanceof records_1.HTTPSRecord))
            return;
        if (record.match.test(hostname)) {
            ret = record.credentials;
            return false;
        }
    });
    return ret;
}
function resolveCertificate ( records , hostname ) { var ret ; records . forEach ( function ( record ) { if ( ! ( record instanceof records_1 . HTTPSRecord ) ) return ; if ( record . match . test ( hostname ) ) { ret = record . credentials ; return false ; } } ) ; return ret ; }
Resolve the credentials for the given hostname.
Resolve the credentials for the given hostname .