mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
9c75ec77a6
* new/cyrusimap.org/cyrus-sasl * Fix test * Add CFLAGS: -Wno-implicit-function-declaration * Remove platform limitations --------- Co-authored-by: James Reynolds <magnsuviri@me.com>
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;
|
|
} |