11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciif (!common.hasCrypto) 51cb0ef41Sopenharmony_ci common.skip('missing crypto'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst assert = require('assert'); 81cb0ef41Sopenharmony_ciconst tls = require('tls'); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci{ 111cb0ef41Sopenharmony_ci const server = tls.createServer(); 121cb0ef41Sopenharmony_ci assert.strictEqual(server.clientCertEngine, undefined); 131cb0ef41Sopenharmony_ci common.expectWarning('DeprecationWarning', 141cb0ef41Sopenharmony_ci 'Server.prototype.setOptions() is deprecated', 151cb0ef41Sopenharmony_ci 'DEP0122'); 161cb0ef41Sopenharmony_ci server.setOptions({ clientCertEngine: 'Cannonmouth' }); 171cb0ef41Sopenharmony_ci assert.strictEqual(server.clientCertEngine, 'Cannonmouth'); 181cb0ef41Sopenharmony_ci} 19