SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
security/p5-Crypt-OpenSSL-DSA/patches/patch-DSA_xs
Normal file
26
security/p5-Crypt-OpenSSL-DSA/patches/patch-DSA_xs
Normal file
|
@ -0,0 +1,26 @@
|
|||
Use a dummy public key that has a chance of being an actual public key.
|
||||
|
||||
This works around an expected test failure until we add a check that a
|
||||
signature can be verified with the provided DSA parameters.
|
||||
|
||||
It would probably make more sense to mark the failing test without this
|
||||
diff as XFAIL.
|
||||
|
||||
Index: DSA.xs
|
||||
--- DSA.xs.orig
|
||||
+++ DSA.xs
|
||||
@@ -601,12 +601,12 @@ set_priv_key(dsa, priv_key_SV)
|
||||
PREINIT:
|
||||
STRLEN len;
|
||||
const BIGNUM *old_pub_key;
|
||||
- BIGNUM *pub_key;
|
||||
+ BIGNUM *pub_key = NULL;
|
||||
BIGNUM *priv_key;
|
||||
CODE:
|
||||
DSA_get0_key(dsa, &old_pub_key, NULL);
|
||||
if (NULL == old_pub_key) {
|
||||
- pub_key = BN_new();
|
||||
+ BN_dec2bn(&pub_key, "2");
|
||||
if (NULL == pub_key) {
|
||||
croak("Could not create a dummy public key");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue