Skip to content

Commit

Permalink
Fix function naming (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
thsmi authored Nov 8, 2021
1 parent 3c77128 commit 3b9110b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/libs/libManageSieve/SieveClient.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class SieveNodeClient extends SieveAbstractClient {
return;
}

if (this.isPinned(cert, options.fingerprints)) {
if (this.isPinnedCert(cert, options.fingerprints)) {
this.secured = true;
resolve();
return;
Expand All @@ -165,7 +165,7 @@ class SieveNodeClient extends SieveAbstractClient {

if ((error !== null ) && (options.ignoreCertErrors.includes(error.code))) {

if (this.isPinned(cert, options.fingerprints)) {
if (this.isPinnedCert(cert, options.fingerprints)) {
this.secured = true;
resolve();
return;
Expand All @@ -184,7 +184,7 @@ class SieveNodeClient extends SieveAbstractClient {
}

if (this.tlsSocket.authorizationError === "ERR_TLS_CERT_ALTNAME_INVALID") {
if (this.isPinned(cert, options.fingerprints)) {
if (this.isPinnedCert(cert, options.fingerprints)) {
this.secured = true;
resolve();
return;
Expand Down

0 comments on commit 3b9110b

Please sign in to comment.