From: Shivani Bhardwaj Date: Fri, 3 Jun 2022 10:26:36 +0000 (+0530) Subject: base64: add Base64Ecode enum X-Git-Tag: suricata-6.0.6~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec114d206d5b689b58241c0a76e7c4291f6c690;p=thirdparty%2Fsuricata.git base64: add Base64Ecode enum (cherry picked from commit cb01cc6929b6bfdf02f7b3049d7bd110a1465fa4) --- diff --git a/src/util-base64.h b/src/util-base64.h index 2de0275ce5..c57cc28766 100644 --- a/src/util-base64.h +++ b/src/util-base64.h @@ -54,6 +54,12 @@ typedef enum { BASE64_MODE_STRICT, } Base64Mode; +typedef enum { + BASE64_ECODE_ERR = -1, + BASE64_ECODE_OK = 0, + BASE64_ECODE_BUF, +} Base64Ecode; + /* Function prototypes */ uint32_t DecodeBase64(uint8_t *dest, const uint8_t *src, uint32_t len, Base64Mode mode);