test: guess_raw_type: plain signed incoming message
[libisds.git] / src / cdecode.h
blob750c57e510a97ce2c29f8446f300205d35f385f7
1 /*
2 cdecode.h - c header for a base64 decoding algorithm
4 This is part of the libb64 project, and has been placed in the public domain.
5 For details, see http://sourceforge.net/projects/libb64
6 */
8 #ifndef BASE64_CDECODE_H
9 #define BASE64_CDECODE_H
11 typedef enum
13 step_a, step_b, step_c, step_d
14 } base64_decodestep;
16 typedef struct
18 base64_decodestep step;
19 char plainchar;
20 } base64_decodestate;
22 void base64_init_decodestate(base64_decodestate* state_in);
24 int base64_decode_value(char value_in);
26 int base64_decode_block(const char* code_in, const int length_in, char* plaintext_out, base64_decodestate* state_in);
28 #endif /* BASE64_CDECODE_H */