mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-14 19:16:57 +02:00
Directly including stddef.h in many files results in it being processed multiple times while it can be centralized in api-t.h and be guarded against multiple inclusions. Doing so reduces the number of preprocessed lines by 1200!
27 lines
737 B
C
27 lines
737 B
C
/*
|
|
* include/haproxy/base64.h
|
|
* Ascii to Base64 conversion as described in RFC1421.
|
|
*
|
|
* Copyright 2006-2020 Willy Tarreau <w@1wt.eu>
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
|
|
#ifndef _HAPROXY_BASE64_H
|
|
#define _HAPROXY_BASE64_H
|
|
|
|
#include <haproxy/api.h>
|
|
|
|
int a2base64(char *in, int ilen, char *out, int olen);
|
|
int base64dec(const char *in, size_t ilen, char *out, size_t olen);
|
|
const char *s30tob64(int in, char *out);
|
|
int b64tos30(const char *in);
|
|
|
|
extern const char base64tab[];
|
|
|
|
#endif /* _HAPROXY_BASE64_H */
|