X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fsession.h;h=c11921b6c5f649f4c28db0dcbdf78c3d22cf3dcf;hb=e7cd169beafdcdb7f268184b0d8d75dff2c82e9c;hp=28f25991d4a655b03012e3e2695f290d804dbc5f;hpb=11d36a9f7e16aa9992835f8ce06f0e1e5297b131;p=src%2Fapp-framework-binder.git diff --git a/src/session.h b/src/session.h index 28f25991..c11921b6 100644 --- a/src/session.h +++ b/src/session.h @@ -26,11 +26,13 @@ struct AFB_clientCtx char token[37]; // short term authentication of remote client }; -extern void ctxStoreInit (int nbSession, int timeout, int apicount, const char *initok); +extern void ctxStoreInit (int nbSession, int timeout, const char *initok); -extern struct AFB_clientCtx *ctxClientGet (const char *uuid); +extern struct AFB_clientCtx *ctxClientGetForUuid (const char *uuid); +extern struct AFB_clientCtx *ctxClientGet(struct AFB_clientCtx *clientCtx); extern void ctxClientPut(struct AFB_clientCtx *clientCtx); extern void ctxClientClose (struct AFB_clientCtx *clientCtx); extern int ctxTokenCheck (struct AFB_clientCtx *clientCtx, const char *token); +extern int ctxTokenCheckLen (struct AFB_clientCtx *clientCtx, const char *token, size_t length); extern void ctxTokenNew (struct AFB_clientCtx *clientCtx);