mirror of
https://gitlab.kit.edu/kit/scc/sys/mail/exim-encrypt-dlfunc.git
synced 2025-12-06 09:33:56 +01:00
debugging meson build tests
This commit is contained in:
@ -53,15 +53,11 @@ char *read_first_line(const char *filename) {
|
||||
return cipherstring;
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
unsigned char *string;
|
||||
size_t length;
|
||||
} Password;
|
||||
|
||||
void base64_decode_string(const char *input, unsigned char **outstring, size_t *outlen) {
|
||||
size_t input_len = strlen(input);
|
||||
size_t outmaxlen = input_len / 4 * 3;
|
||||
*outstring = malloc(outmaxlen * sizeof(unsigned char));
|
||||
fprintf(stderr, " Input: |%s| [%zu]\n", input, input_len);
|
||||
int b64err = sodium_base642bin(*outstring, outmaxlen, (const char *) input, input_len,
|
||||
NULL, outlen, NULL, sodium_base64_VARIANT_ORIGINAL);
|
||||
if (b64err != 0) {
|
||||
|
||||
Reference in New Issue
Block a user