projects
/
cyrus-sasl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor gs2 plus logic a bit
[cyrus-sasl.git]
/
sample
/
server.c
diff --git
a/sample/server.c
b/sample/server.c
index
d34fb7b
..
7d680f9
100644
(file)
--- a/
sample/server.c
+++ b/
sample/server.c
@@
-368,6
+368,7
@@
int main(int argc, char *argv[])
int nfds, fd = -1;
FILE *in, *out;
fd_set readfds;
int nfds, fd = -1;
FILE *in, *out;
fd_set readfds;
+ sasl_channel_bindings cb;
FD_ZERO(&readfds);
for (i = 1; i <= l[0]; i++)
FD_ZERO(&readfds);
for (i = 1; i <= l[0]; i++)
@@
-439,6
+440,13
@@
int main(int argc, char *argv[])
NULL, 0, &conn);
if (r != SASL_OK) saslfail(r, "allocating connection state");
NULL, 0, &conn);
if (r != SASL_OK) saslfail(r, "allocating connection state");
+ cb.type = "sasl-sample";
+ cb.critical = 1;
+ cb.data = "this is a test of channel bindings";
+ cb.len = strlen(cb.data);
+
+ sasl_setprop(conn, SASL_CHANNEL_BINDINGS, &cb);
+
/* set external properties here
sasl_setprop(conn, SASL_SSF_EXTERNAL, &extprops); */
/* set external properties here
sasl_setprop(conn, SASL_SSF_EXTERNAL, &extprops); */