mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +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;
|
||
|
}
|