2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

2105. [func] GSS-TSIG support (RFC 3645).

This commit is contained in:
Mark Andrews
2006-12-04 02:26:05 +00:00
parent 289ae548d5
commit 46f681f001

View File

@@ -17,7 +17,7 @@
/*
* Principal Author: Brian Wellington
* $Id: opensslrsa_link.c,v 1.13 2006/12/04 01:52:46 marka Exp $
* $Id: opensslrsa_link.c,v 1.14 2006/12/04 02:26:05 marka Exp $
*/
#ifdef OPENSSL
@@ -310,7 +310,7 @@ opensslrsa_generate(dst_key_t *key, int exp) {
if (RSA_generate_key_ex(rsa, key->key_size, e, &cb)) {
BN_free(e);
SET_FLAGS(rsa);
key->keydata.opaque = rsa;
key->keydata.rsa = rsa;
return (ISC_R_SUCCESS);
}
@@ -332,7 +332,7 @@ err:
if (rsa == NULL)
return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
SET_FLAGS(rsa);
key->keydata.opaque = rsa;
key->keydata.rsa = rsa;
return (ISC_R_SUCCESS);
#endif
@@ -340,15 +340,15 @@ err:
static isc_boolean_t
opensslrsa_isprivate(const dst_key_t *key) {
RSA *rsa = (RSA *) key->keydata.opaque;
RSA *rsa = (RSA *) key->keydata.rsa;
return (ISC_TF(rsa != NULL && rsa->d != NULL));
}
static void
opensslrsa_destroy(dst_key_t *key) {
RSA *rsa = key->keydata.opaque;
RSA *rsa = key->keydata.rsa;
RSA_free(rsa);
key->keydata.opaque = NULL;
key->keydata.rsa = NULL;
}