Skip to content

Commit 9addb3e

Browse files
committed
SSL: Change other ProcessBufferTryDecode*()
Ed448, Falcon and Dilithium changed to return 0 when key format is 0.
1 parent b53cc0e commit 9addb3e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6893,6 +6893,9 @@ static int ProcessBufferTryDecodeEd448(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
68936893
}
68946894
}
68956895
}
6896+
else if (*keyFormat == 0) {
6897+
ret = 0; /* continue trying other algorithms */
6898+
}
68966899

68976900
wc_ed448_free(key);
68986901
}
@@ -6997,6 +7000,10 @@ static int ProcessBufferTryDecodeFalcon(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
69977000
*resetSuites = 1;
69987001
}
69997002
}
7003+
else if (*keyFormat == 0) {
7004+
ret = 0; /* continue trying other algorithms */
7005+
}
7006+
70007007
wc_falcon_free(key);
70017008
}
70027009
XFREE(key, heap, DYNAMIC_TYPE_FALCON);
@@ -7111,6 +7118,10 @@ static int ProcessBufferTryDecodeDilithium(WOLFSSL_CTX* ctx, WOLFSSL* ssl,
71117118
*resetSuites = 1;
71127119
}
71137120
}
7121+
else if (*keyFormat == 0) {
7122+
ret = 0; /* continue trying other algorithms */
7123+
}
7124+
71147125
wc_dilithium_free(key);
71157126
}
71167127
XFREE(key, heap, DYNAMIC_TYPE_DILITHIUM);

0 commit comments

Comments
 (0)