debugging meson build tests

This commit is contained in:
Heiko Reese
2021-09-11 12:49:41 +02:00
parent 0d8fb3dd77
commit b6a350ef3a
3 changed files with 15 additions and 16 deletions

View File

@ -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) {