Skip to content

Commit febb147

Browse files
authored
Merge pull request #198 from ColtonWilley/wp_dh_type_specific_spki
Add support for DH type specific SPKI decoder
2 parents 6bc1f8e + b804583 commit febb147

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wp_dh_kmgmt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,12 @@ static int wp_dh_decode(wp_DhEncDecCtx* ctx, OSSL_CORE_BIO *cBio,
22082208
decoded = 0;
22092209
}
22102210
}
2211+
else if ((selection & OSSL_KEYMGMT_SELECT_PUBLIC_KEY) != 0) {
2212+
if (!wp_dh_decode_spki(dh, data, len)) {
2213+
ok = 0;
2214+
decoded = 0;
2215+
}
2216+
}
22112217
else {
22122218
if (!wp_dh_decode_params(dh, data, len)) {
22132219
ok = 0;

0 commit comments

Comments
 (0)