summaryrefslogtreecommitdiff
path: root/lib/_tls_common.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r--lib/_tls_common.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index efe9040956..f24cfcbca6 100644
--- a/lib/_tls_common.js
+++ b/lib/_tls_common.js
@@ -153,6 +153,19 @@ exports.createSecureContext = function createSecureContext(options) {
}
}
+ const sigalgs = options.sigalgs;
+ if (sigalgs !== undefined) {
+ if (typeof sigalgs !== 'string') {
+ throw new ERR_INVALID_ARG_TYPE('options.sigalgs', 'string', sigalgs);
+ }
+
+ if (sigalgs === '') {
+ throw new ERR_INVALID_OPT_VALUE('sigalgs', sigalgs);
+ }
+
+ c.context.setSigalgs(sigalgs);
+ }
+
if (options.ciphers && typeof options.ciphers !== 'string') {
throw new ERR_INVALID_ARG_TYPE(
'options.ciphers', 'string', options.ciphers);