@ -23,7 +23,7 @@ which is a function pointer of the type:
.br
.sp
It will pass a pointer to the connection link initiating now. Link isn't set fully at this moment and doesn't pass any messages and don't works with channel's operations. To pass initiation to the next stage this function should return
.BSNE_SUCCESS.
.B0.
In fail case other code error should be returned.
.SHRETURNVALUE
None.
@ -32,9 +32,21 @@ None.
.SHBUGS
None known yet.
.SHEXAMPLE
None.
This example shows the code prototype for the simple check:
.RS
.nf
.ift.ftCW
int validatex509(conn_t *co)
{
perm_ctx_t *ctx = connection_getpctx(co);
uint64_t x509serial = ctx->certid;
/* do checks ... */
/* your fail case */return 1;
return 0; /* all is fine */
}
.SHAPPLICATIONUSAGE
None.
This function should be used on the master service, currently it's not applicable for client applications, and may cause undefined behavoir.