Skip to content

Commit

Permalink
libipsecconf: Add ECDSA support
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Wouters <pwouters@redhat.com>
  • Loading branch information
sahanaprasad07 authored and letoams committed Sep 10, 2018
1 parent 4e2c9be commit 19a69d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/libipsecconf/confread.c
Expand Up @@ -1386,6 +1386,15 @@ static bool load_conn(
} else if (streq(val, "rsa-sha2_512")) {
conn->policy |= POLICY_RSASIG;
conn->sighash_policy |= POL_SIGHASH_SHA2_512;
} else if (streq(val, "ecdsa") || streq(val, "ecdsa-sha2_256")) {
conn->policy |= POLICY_ECDSA;
conn->sighash_policy |= POL_SIGHASH_SHA2_256;
} else if (streq(val, "ecdsa-sha2_384")) {
conn->policy |= POLICY_ECDSA;
conn->sighash_policy |= POL_SIGHASH_SHA2_384;
} else if (streq(val, "ecdsa-sha2_512")) {
conn->policy |= POLICY_ECDSA;
conn->sighash_policy |= POL_SIGHASH_SHA2_512;
} else {
starter_error_append(perrl, "connection authby= value is unknown");
return TRUE;
Expand Down

0 comments on commit 19a69d7

Please sign in to comment.