diff options
author | Niels Möller <nisse@lysator.liu.se> | 2017-08-27 20:45:21 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2017-08-27 20:45:21 +0200 |
commit | f2da403135e2b2f641cf0f8219ad5b72083b7dfd (patch) | |
tree | e3df313301bd15c5009305e5b30501fb14e4758f /base64-decode.c | |
parent | 0bf64256ecf10af974c1970d87ffad19cbce7b51 (diff) | |
download | nettle-f2da403135e2b2f641cf0f8219ad5b72083b7dfd.tar.gz |
Change type of base16- and base64-encoded data from uint8_t to char.
Diffstat (limited to 'base64-decode.c')
-rw-r--r-- | base64-decode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base64-decode.c b/base64-decode.c index 337ea395..b993117a 100644 --- a/base64-decode.c +++ b/base64-decode.c @@ -73,9 +73,9 @@ base64_decode_init(struct base64_decode_ctx *ctx) int base64_decode_single(struct base64_decode_ctx *ctx, uint8_t *dst, - uint8_t src) + char src) { - int data = ctx->table[src]; + int data = ctx->table[(uint8_t) src]; switch(data) { @@ -122,7 +122,7 @@ base64_decode_update(struct base64_decode_ctx *ctx, size_t *dst_length, uint8_t *dst, size_t src_length, - const uint8_t *src) + const char *src) { size_t done; size_t i; |