Ignore:
Timestamp:
Mar 15, 2008, 12:38:20 PM (17 years ago)
Author:
katerina
Message:

First parts of changes for MODI_TXT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_utils.h

    r149 r167  
    190190char * sh_util_basename(const char * fullpath);
    191191
     192/* required size (including terminating NULL) for string of strlen l
     193 */
     194#define SH_B64_SIZ(l)  (1 + ((((l) + 2) / 3) * 4))
     195
     196/* return len of encoded string
     197 */
     198size_t sh_util_base64_enc (unsigned char * out, const unsigned char * instr,
     199                           size_t lin);
     200
     201/* return allocated encoded string in out, return its len
     202 */
     203size_t sh_util_base64_enc_alloc (char **out, const char *in, size_t inlen);
     204
     205/* return len of decoded string
     206 */ 
     207size_t sh_util_base64_dec (unsigned char *out, const unsigned char *in, size_t lin);
     208
     209/* return allocated decoded string in out, return its len
     210 */ 
     211size_t sh_util_base64_dec_alloc (unsigned char **out, const unsigned char *in, size_t lin);
     212
    192213#endif
Note: See TracChangeset for help on using the changeset viewer.