Skip to content

Commit 200c832

Browse files
committed
deimos.openssl.ec: Fix an enum's initial value
The non-zero value required an init to be linked in.
1 parent 7d67f7f commit 200c832

File tree

1 file changed

+1
-0
lines changed
  • source/deimos/openssl

1 file changed

+1
-0
lines changed

source/deimos/openssl/ec.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ static if (!is(typeof(OPENSSL_ECC_MAX_FIELD_BITS))) {
100100
/** Enum for the point conversion form as defined in X9.62 (ECDSA)
101101
* for the encoding of a elliptic curve point (x,y) */
102102
enum point_conversion_form_t {
103+
init = 0, // Ensure initial values in D is zero
103104
/** the point is encoded as z||x, where the octet z specifies
104105
* which solution of the quadratic equation y is */
105106
POINT_CONVERSION_COMPRESSED = 2,

0 commit comments

Comments
 (0)