l8w8jwt
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
26#ifndef L8W8JWT_BASE64_H
27#define L8W8JWT_BASE64_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "version.h"
34#include <stdint.h>
35#include <string.h>
36
54L8W8JWT_API int l8w8jwt_base64_encode(int url, const uint8_t* data, size_t data_length, char** out, size_t* out_length);
55
71L8W8JWT_API int l8w8jwt_base64_decode(int url, const char* data, size_t data_length, uint8_t** out, size_t* out_length);
72
73#ifdef __cplusplus
74} // extern "C"
75#endif
76
77#endif // L8W8JWT_BASE64_H
L8W8JWT_API int l8w8jwt_base64_encode(int url, const uint8_t *data, size_t data_length, char **out, size_t *out_length)
L8W8JWT_API int l8w8jwt_base64_decode(int url, const char *data, size_t data_length, uint8_t **out, size_t *out_length)
l8w8jwt version checking.