Added encode flag to control whether the encoded string ends in a newline after padding or not

This commit is contained in:
Jordan Cristiano
2015-06-21 01:17:25 -04:00
parent e7e498efd9
commit 9adb42e579
2 changed files with 11 additions and 1 deletions

View File

@ -13,8 +13,14 @@ typedef enum
step_A, step_B, step_C
} base64_encodestep;
typedef enum
{
BASE64_ENC_NO_NEWLINE_TERM = 0x1
} base64_encodeflags;
typedef struct
{
base64_encodeflags flags;
base64_encodestep step;
char result;
int stepcount;