File: base64.h

package info (click to toggle)
afflib 3.6.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,320 kB
  • sloc: cpp: 21,493; ansic: 14,745; sh: 11,235; makefile: 538; python: 95
file content (39 lines) | stat: -rwxr-xr-x 692 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Base64 conversion.
 *
 * From RFC1521 and draft-ietf-dnssec-secext-03.txt.
 *
 * Implementation (C) 1996-1999 by Internet Software Consortium.
 */



#ifndef BASE64_H
#define BASE64_H

#include <sys/types.h>

#ifdef __cplusplus
extern "C" {
#endif
#ifdef NEVER_DEFINED
}
#endif
/* Convert from printable base64 to binary.
 * Returns number of bytes converted
 */
int b64_pton_slg(const char *str,int srclen,unsigned char *target,size_t targsize);

/* Convert from binary to printable base 64.
 * returns size of printable thing.
 */
int b64_ntop(const unsigned char *str,size_t srclength,char *target,size_t targsize);

#ifdef NEVER_DEFINED
{
#endif
#ifdef __cplusplus
}
#endif

#endif