------------------------------------------------------------ revno: 5351 committer: Henrik Ziegeldorf <henrik.ziegeldorf@xxxxxxxxxxxxxx> branch nick: ecc timestamp: Tue 2011-01-11 15:06:01 +0100 message: Set asn1 flag for ecdsa key group to OPENSSL_EC_NAMED_CURVE. This does not change the key, but tells openssl, that the keys group parameters are those of a known group. With this flag, printing an ec key looks nicer. modified: lib/core/hostid.c -- lp:~hipl-core/hipl/ecc https://code.launchpad.net/~hipl-core/hipl/ecc Your team HIPL core team is subscribed to branch lp:~hipl-core/hipl/ecc. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/ecc/+edit-subscription
=== modified file 'lib/core/hostid.c' --- lib/core/hostid.c 2011-01-11 12:12:28 +0000 +++ lib/core/hostid.c 2011-01-11 14:06:01 +0000 @@ -618,6 +618,8 @@ HIP_IFEL(!(group = EC_GROUP_new_by_curve_name(nid)), -1, "Failed building the group.\n"); + EC_GROUP_set_asn1_flag(group, OPENSSL_EC_NAMED_CURVE); + HIP_IFEL(!(pub_key = EC_POINT_new(group)), -1, "Failed to init public key (point).\n");