"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/auth/db-oauth2.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

db-oauth2.c  (dovecot-2.3.16):db-oauth2.c  (dovecot-2.3.17)
skipping to change at line 297 skipping to change at line 297
i_fatal("oauth2: local_validation_key_dict is required " i_fatal("oauth2: local_validation_key_dict is required "
"for local introspection."); "for local introspection.");
db->oauth2_set.introspection_mode = INTROSPECTION_MODE_LOCAL; db->oauth2_set.introspection_mode = INTROSPECTION_MODE_LOCAL;
} else { } else {
i_fatal("oauth2: Invalid value '%s' for introspection mode, must be on auth, get, post or local", i_fatal("oauth2: Invalid value '%s' for introspection mode, must be on auth, get, post or local",
db->set.introspection_mode); db->set.introspection_mode);
} }
if (db->oauth2_set.introspection_mode == INTROSPECTION_MODE_LOCAL) { if (db->oauth2_set.introspection_mode == INTROSPECTION_MODE_LOCAL) {
struct dict_settings dict_set = { struct dict_settings dict_set = {
.username = "",
.base_dir = global_auth_settings->base_dir, .base_dir = global_auth_settings->base_dir,
.value_type = DICT_DATA_TYPE_STRING,
.event_parent = auth_event, .event_parent = auth_event,
}; };
if (dict_init(db->set.local_validation_key_dict, &dict_set, if (dict_init(db->set.local_validation_key_dict, &dict_set,
&db->oauth2_set.key_dict, &error) < 0) &db->oauth2_set.key_dict, &error) < 0)
i_fatal("Cannot initialize key dict: %s", error); i_fatal("Cannot initialize key dict: %s", error);
/* failure to initialize dcrypt is not fatal - we can still /* failure to initialize dcrypt is not fatal - we can still
validate HMAC based keys */ validate HMAC based keys */
(void)dcrypt_initialize(NULL, NULL, NULL); (void)dcrypt_initialize(NULL, NULL, NULL);
/* initialize key cache */ /* initialize key cache */
db->oauth2_set.key_cache = oauth2_validation_key_cache_init(); db->oauth2_set.key_cache = oauth2_validation_key_cache_init();
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)