pantry/projects/cyrusimap.org/cyrus-sasl/fixture.cpp
James Reynolds 9c75ec77a6
new/cyrusimap.org/cyrus-sasl (#5240)
* new/cyrusimap.org/cyrus-sasl

* Fix test

* Add CFLAGS: -Wno-implicit-function-declaration

* Remove platform limitations

---------

Co-authored-by: James Reynolds <magnsuviri@me.com>
2024-02-21 01:28:04 -05:00

12 lines
No EOL
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;
}