From 94178e98f8a01f5df54be400070d6dc8e95ebe2a Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Thu, 15 Feb 2001 23:21:47 +0000 Subject: [PATCH] isc_base64_decodestring should take a const char *, not a char * --- lib/isc/base64.c | 6 ++++-- lib/isc/include/isc/base64.h | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/isc/base64.c b/lib/isc/base64.c index ad0238c489..7316543ceb 100644 --- a/lib/isc/base64.c +++ b/lib/isc/base64.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: base64.c,v 1.21 2001/01/09 21:55:54 bwelling Exp $ */ +/* $Id: base64.c,v 1.22 2001/02/15 23:21:46 bwelling Exp $ */ #include @@ -190,7 +190,9 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) { } isc_result_t -isc_base64_decodestring(isc_mem_t *mctx, char *cstr, isc_buffer_t *target) { +isc_base64_decodestring(isc_mem_t *mctx, const char *cstr, + isc_buffer_t *target) +{ base64_decode_ctx_t ctx; UNUSED(mctx); diff --git a/lib/isc/include/isc/base64.h b/lib/isc/include/isc/base64.h index 922e75c6b9..b21cce7007 100644 --- a/lib/isc/include/isc/base64.h +++ b/lib/isc/include/isc/base64.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: base64.h,v 1.13 2001/01/09 21:56:43 bwelling Exp $ */ +/* $Id: base64.h,v 1.14 2001/02/15 23:21:47 bwelling Exp $ */ #ifndef ISC_BASE64_H #define ISC_BASE64_H 1 @@ -54,7 +54,8 @@ isc_base64_totext(isc_region_t *source, int wordlength, */ isc_result_t -isc_base64_decodestring(isc_mem_t *mctx, char *cstr, isc_buffer_t *target); +isc_base64_decodestring(isc_mem_t *mctx, const char *cstr, + isc_buffer_t *target); /* * Decode a null-terminated base64 string. *