mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Merge branch 'visual_studio_spell_checker' into 'master'
Typos found by Visual Studio Code Checker See merge request openconnect/ocserv!276
This commit is contained in:
@@ -515,7 +515,7 @@ static json_t *oidc_extract_claims(cjose_jws_t * jws)
|
||||
return token_claims;
|
||||
}
|
||||
|
||||
static bool oidc_verify_singature(oidc_vctx_st * vctx, cjose_jws_t * jws)
|
||||
static bool oidc_verify_signature(oidc_vctx_st * vctx, cjose_jws_t * jws)
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
@@ -616,7 +616,7 @@ static bool oidc_verify_token(oidc_vctx_st * vctx, const char *token,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!oidc_verify_singature(vctx, jws)) {
|
||||
if (!oidc_verify_signature(vctx, jws)) {
|
||||
syslog(LOG_NOTICE,
|
||||
"ocserv-oidc: Token signature validation failed\n");
|
||||
goto cleanup;
|
||||
|
||||
@@ -381,7 +381,7 @@ static inline const void *list_tail_(const struct list_head *h, size_t off)
|
||||
* @off: offset(relative to @i) at which list node data resides.
|
||||
*
|
||||
* This is a low-level wrapper to iterate @i over the entire list, used to
|
||||
* implement all oher, more high-level, for-each constructs. It's a for loop,
|
||||
* implement all other, more high-level, for-each constructs. It's a for loop,
|
||||
* so you can break and continue as normal.
|
||||
*
|
||||
* WARNING! Being the low-level macro that it is, this wrapper doesn't know
|
||||
@@ -390,7 +390,7 @@ static inline const void *list_tail_(const struct list_head *h, size_t off)
|
||||
* properly filled `struct node_list' which in turn contains pointers to
|
||||
* memory chunks and it's turtles all the way down. With all that in mind
|
||||
* remember that given the wrong pointer/offset couple this macro will
|
||||
* happilly churn all you memory until SEGFAULT stops it, in other words
|
||||
* happily churn all you memory until SEGFAULT stops it, in other words
|
||||
* caveat emptor.
|
||||
*
|
||||
* It is worth mentioning that one of legitimate use-cases for that wrapper
|
||||
|
||||
@@ -902,7 +902,7 @@ void sec_auth_user_deinit(sec_mod_st *sec, client_entry_st *e)
|
||||
|
||||
vhost = e->vhost;
|
||||
|
||||
seclog(sec, LOG_DEBUG, "permamently closing session of user '%s' "SESSION_STR, e->acct_info.username, e->acct_info.safe_id);
|
||||
seclog(sec, LOG_DEBUG, "permanently closing session of user '%s' "SESSION_STR, e->acct_info.username, e->acct_info.safe_id);
|
||||
if (vhost->perm_config.acct.amod != NULL && vhost->perm_config.acct.amod->close_session != NULL && e->session_is_open != 0) {
|
||||
vhost->perm_config.acct.amod->close_session(e->vhost_acct_ctx, e->auth_type, &e->acct_info, &e->saved_stats, e->discon_reason);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user