mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 00:55:24 +00:00
Remove internal dst memory context that was used just for OpenSSL and was passthrough for malloc and free
This commit is contained in:
@@ -190,7 +190,7 @@ gssapi_verify(dst_context_t *dctx, const isc_region_t *sig) {
|
||||
gss_buffer_desc gmessage, gsig;
|
||||
OM_uint32 minor, gret;
|
||||
gss_ctx_id_t gssctx = dctx->key->keydata.gssctx;
|
||||
unsigned char *buf;
|
||||
unsigned char buf[sig->length];
|
||||
char err[1024];
|
||||
|
||||
/*
|
||||
@@ -200,15 +200,6 @@ gssapi_verify(dst_context_t *dctx, const isc_region_t *sig) {
|
||||
isc_buffer_usedregion(ctx->buffer, &message);
|
||||
REGION_TO_GBUFFER(message, gmessage);
|
||||
|
||||
/*
|
||||
* XXXMLG
|
||||
* It seem that gss_verify_mic() modifies the signature buffer,
|
||||
* at least on Heimdal's implementation. Copy it here to an allocated
|
||||
* buffer.
|
||||
*/
|
||||
buf = isc_mem_allocate(dst__memory_pool, sig->length);
|
||||
if (buf == NULL)
|
||||
return (ISC_R_FAILURE);
|
||||
memmove(buf, sig->base, sig->length);
|
||||
r.base = buf;
|
||||
r.length = sig->length;
|
||||
@@ -219,8 +210,6 @@ gssapi_verify(dst_context_t *dctx, const isc_region_t *sig) {
|
||||
*/
|
||||
gret = gss_verify_mic(&minor, gssctx, &gmessage, &gsig, NULL);
|
||||
|
||||
isc_mem_free(dst__memory_pool, buf);
|
||||
|
||||
/*
|
||||
* Convert return codes into something useful to us.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user