Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17020 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -301,7 +301,7 @@ heim_int2BN(const heim_integer *i)
|
|||||||
return bn;
|
return bn;
|
||||||
}
|
}
|
||||||
|
|
||||||
static krb5_error_code
|
static int
|
||||||
bn2heim_int(BIGNUM *bn, heim_integer *integer)
|
bn2heim_int(BIGNUM *bn, heim_integer *integer)
|
||||||
{
|
{
|
||||||
integer->length = BN_num_bytes(bn);
|
integer->length = BN_num_bytes(bn);
|
||||||
@@ -353,16 +353,16 @@ d2i_RSAPrivateKey(RSA *rsa, const unsigned char **pp, size_t len)
|
|||||||
int
|
int
|
||||||
i2d_RSAPublicKey(RSA *rsa, const unsigned char **pp)
|
i2d_RSAPublicKey(RSA *rsa, const unsigned char **pp)
|
||||||
{
|
{
|
||||||
|
RSAPublicKey data;
|
||||||
size_t size;
|
size_t size;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = bn2heim_int(rsa->n, &data.modulus);
|
ret = bn2heim_int(rsa->n, &data.modulus);
|
||||||
ret = bn2heim_int(rsa->n, &data.e);
|
ret = bn2heim_int(rsa->e, &data.publicExponent);
|
||||||
|
|
||||||
if (pp == NULL) {
|
if (pp == NULL) {
|
||||||
size = length_RSAPublicKey(&data);
|
size = length_RSAPublicKey(&data);
|
||||||
} else {
|
} else {
|
||||||
RSAPublicKey data;
|
|
||||||
void *p;
|
void *p;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user