Skip to content

Commit a52db4a

Browse files
avivkellermootari
andcommitted
errors: fix 'ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED' typo
Co-Authored-By: Fabian Iwand <[email protected]>
1 parent 44f81a1 commit a52db4a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

doc/api/errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,9 +2856,9 @@ event is emitted before continuing.
28562856
Attempting to set a TLS protocol `minVersion` or `maxVersion` conflicts with an
28572857
attempt to set the `secureProtocol` explicitly. Use one mechanism or the other.
28582858

2859-
<a id="ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED"></a>
2859+
<a id="ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED"></a>
28602860

2861-
### `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED`
2861+
### `ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED`
28622862

28632863
Failed to set PSK identity hint. Hint may be too long.
28642864

doc/api/tls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ changes:
21452145
* `pskIdentityHint` {string} optional hint to send to a client to help
21462146
with selecting the identity during TLS-PSK negotiation. Will be ignored
21472147
in TLS 1.3. Upon failing to set pskIdentityHint `'tlsClientError'` will be
2148-
emitted with `'ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED'` code.
2148+
emitted with `'ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED'` code.
21492149
* ...: Any [`tls.createSecureContext()`][] option can be provided. For
21502150
servers, the identity options (`pfx`, `key`/`cert`, or `pskCallback`)
21512151
are usually required.

src/crypto/crypto_tls.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ void TLSWrap::SetPskIdentityHint(const FunctionCallbackInfo<Value>& args) {
13921392
Utf8Value hint(isolate, args[0].As<String>());
13931393

13941394
if (!SSL_use_psk_identity_hint(p->ssl_.get(), *hint)) {
1395-
Local<Value> err = node::ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED(isolate);
1395+
Local<Value> err = node::ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED(isolate);
13961396
p->MakeCallback(env->onerror_string(), 1, &err);
13971397
}
13981398
}

src/node_errors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void OOMErrorHandler(const char* location, const v8::OOMDetails& details);
9797
V(ERR_SCRIPT_EXECUTION_TIMEOUT, Error) \
9898
V(ERR_STRING_TOO_LONG, Error) \
9999
V(ERR_TLS_INVALID_PROTOCOL_METHOD, TypeError) \
100-
V(ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED, Error) \
100+
V(ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED, Error) \
101101
V(ERR_VM_MODULE_CACHED_DATA_REJECTED, Error) \
102102
V(ERR_VM_MODULE_LINK_FAILURE, Error) \
103103
V(ERR_WASI_NOT_STARTED, Error) \
@@ -195,7 +195,7 @@ ERRORS_WITH_CODE(V)
195195
"--experimental-print-required-tla.") \
196196
V(ERR_SCRIPT_EXECUTION_INTERRUPTED, \
197197
"Script execution was interrupted by `SIGINT`") \
198-
V(ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED, "Failed to set PSK identity hint") \
198+
V(ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED, "Failed to set PSK identity hint") \
199199
V(ERR_WASI_NOT_STARTED, "wasi.start() has not been called") \
200200
V(ERR_WORKER_INIT_FAILED, "Worker initialization failure") \
201201
V(ERR_PROTO_ACCESS, \

test/parallel/test-tls-psk-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const tls = require('tls');
1717
});
1818
server.on('tlsClientError', (err) => {
1919
assert.ok(err instanceof Error);
20-
assert.strictEqual(err.code, 'ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED');
20+
assert.strictEqual(err.code, 'ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED');
2121
server.close();
2222
});
2323
server.listen(0, () => {

0 commit comments

Comments
 (0)