Handle diffrences between libhcrypto and libcrypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17109 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -103,7 +103,7 @@ BN_to_integer(krb5_context context, BIGNUM *bn, heim_integer *integer)
|
|||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
BN_bn2bin(bn, integer->data);
|
BN_bn2bin(bn, integer->data);
|
||||||
integer->negative = bn->neg;
|
integer->negative = BN_is_negative(bn);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ integer_to_BN(krb5_context context, const char *field, const heim_integer *f)
|
|||||||
krb5_set_error_string(context, "PKINIT: parsing BN failed %s", field);
|
krb5_set_error_string(context, "PKINIT: parsing BN failed %s", field);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
bn->neg = f->negative;
|
BN_set_negative(bn, f->negative);
|
||||||
return bn;
|
return bn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -944,8 +944,7 @@ pk_rd_pa_reply_dh(krb5_context context,
|
|||||||
kdc_dh_pubkey, ctx->dh);
|
kdc_dh_pubkey, ctx->dh);
|
||||||
if (dh_gen_keylen == -1) {
|
if (dh_gen_keylen == -1) {
|
||||||
krb5_set_error_string(context,
|
krb5_set_error_string(context,
|
||||||
"PKINIT: Can't compute Diffie-Hellman key (%s)",
|
"PKINIT: Can't compute Diffie-Hellman key");
|
||||||
ERR_error_string(ERR_get_error(), NULL));
|
|
||||||
ret = KRB5KRB_ERR_GENERIC;
|
ret = KRB5KRB_ERR_GENERIC;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user