Skip to content

Commit 3a7caad

Browse files
committed
Deprecate TRUST_ON_FIRST_USE
1 parent 5e65c20 commit 3a7caad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/v1/internal/ch-node.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function storeFingerprint( serverId, knownHostsPath, fingerprint, cb ) {
106106

107107
const TrustStrategy = {
108108
/**
109-
* @deprecated Since version 1.0. Will be deleted in a future version. TRUST_CUSTOM_CA_SIGNED_CERTIFICATES.
109+
* @deprecated Since version 1.0. Will be deleted in a future version. {@link #TRUST_CUSTOM_CA_SIGNED_CERTIFICATES}.
110110
*/
111111
TRUST_SIGNED_CERTIFICATES: function( opts, onSuccess, onFailure ) {
112112
console.log("`TRUST_SIGNED_CERTIFICATES` has been deprecated as option and will be removed in a future version of " +
@@ -169,7 +169,13 @@ const TrustStrategy = {
169169
socket.on('error', onFailure);
170170
return socket;
171171
},
172+
/**
173+
* @deprecated in 1.1 in favour of {@link #TRUST_ALL_CERTIFICATES}. Will be deleted in a future version.
174+
*/
172175
TRUST_ON_FIRST_USE : function( opts, onSuccess, onFailure ) {
176+
console.log("`TRUST_ON_FIRST_USE` has been deprecated as option and will be removed in a future version of " +
177+
"the driver. Please use `TRUST_ALL_CERTIFICATES` instead.");
178+
173179
let tlsOpts = {
174180
// Because we manually verify the certificate against known_hosts
175181
rejectUnauthorized: false

0 commit comments

Comments
 (0)