⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
include
/
rpm
/
View File Name :
rpmbase64.h
/* base64 encoder/decoder based on public domain implementation * by Chris Venter */ #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif /* returns malloced base64 encoded string * lines are split with \n characters to be nearest lower multiple of linelen * if linelen/4 == 0 lines are not split * if linelen < 0 default line length (64) is used * the returned string is empty when len == 0 * returns NULL on failures */ char *rpmBase64Encode(const void *data, size_t len, int linelen); /* decodes from zero terminated base64 encoded string to a newly malloced buffer * ignores whitespace characters in the input string * return values: * 0 - OK * 1 - input is NULL * 2 - invalid length * 3 - invalid characters on input * 4 - malloc failed */ int rpmBase64Decode(const char *in, void **out, size_t *outlen); /* counts CRC24 and base64 encodes it in a malloced string * returns NULL on failures */ char *rpmBase64CRC(const unsigned char *data, size_t len); #ifdef __cplusplus } #endif