12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef XYSSL_BASE64_H
- #define XYSSL_BASE64_H
- #define XYSSL_ERR_BASE64_INVALID_CHARACTER -0x0012
- #define XYSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010
- #ifdef __cplusplus
- extern "C" {
- #endif
- #import <Foundation/Foundation.h>
- int base64_encode( unsigned char *dst, int *dlen,
- unsigned char *src, int slen );
- int base64_decode( unsigned char *dst, int *dlen,
- unsigned char *src, int slen );
- int base64_self_test( int verbose );
- #ifdef __cplusplus
- }
- #endif
- @interface Base64 : NSObject
- + (NSData *)decodeString:(NSString *)string;
- @end
- #endif
|