mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
12 lines
262 B
C++
12 lines
262 B
C++
|
#include <sasl/saslutil.h>
|
||
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int main(void) {
|
||
|
char buf[123] = "\\0";
|
||
|
unsigned len = 0;
|
||
|
int ret = sasl_encode64("Hello, world!", 13, buf, sizeof buf, &len);
|
||
|
assert(ret == SASL_OK);
|
||
|
printf("%u %s", len, buf);
|
||
|
return 0;
|
||
|
}
|