112 entry->hashtype = KEYFILE_SSHA256; |
113 entry->hashtype = KEYFILE_SSHA256; |
113 } else if(!cx_strcmp(hash_type, cx_str("SSHA512"))) { |
114 } else if(!cx_strcmp(hash_type, cx_str("SSHA512"))) { |
114 entry->hashtype = KEYFILE_SSHA512; |
115 entry->hashtype = KEYFILE_SSHA512; |
115 } else { |
116 } else { |
116 // unkown hash type |
117 // unkown hash type |
117 log_ereport( |
118 ws_cfg_log( |
118 LOG_FAILURE, |
119 LOG_FAILURE, |
119 "keyfile_parse: unknown hash type: %s", |
120 "keyfile_parse: unknown hash type: %s", |
120 cx_strdup_a(mp, hash_type).ptr); |
121 cx_strdup_a(mp, hash_type).ptr); |
121 return 1; |
122 return 1; |
122 } |
123 } |