Make compile again.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17020 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-09 16:58:57 +00:00
parent 52d5fdf939
commit 517a78550f

View File

@@ -301,7 +301,7 @@ heim_int2BN(const heim_integer *i)
return bn;
}
static krb5_error_code
static int
bn2heim_int(BIGNUM *bn, heim_integer *integer)
{
integer->length = BN_num_bytes(bn);
@@ -353,16 +353,16 @@ d2i_RSAPrivateKey(RSA *rsa, const unsigned char **pp, size_t len)
int
i2d_RSAPublicKey(RSA *rsa, const unsigned char **pp)
{
RSAPublicKey data;
size_t size;
int ret;
ret = bn2heim_int(rsa->n, &data.modulus);
ret = bn2heim_int(rsa->n, &data.e);
ret = bn2heim_int(rsa->e, &data.publicExponent);
if (pp == NULL) {
size = length_RSAPublicKey(&data);
} else {
RSAPublicKey data;
void *p;
size_t len;