src/server/config/keyfile.c

changeset 115
51d9a15eac98
parent 101
7fbcdbad0baa
child 141
ff311b63c3af
equal deleted inserted replaced
114:c3a0f1275d71 115:51d9a15eac98
104 104
105 if(!sstrcmp(hash_type, sstr("SSHA"))) { 105 if(!sstrcmp(hash_type, sstr("SSHA"))) {
106 entry->hashtype = KEYFILE_SSHA; 106 entry->hashtype = KEYFILE_SSHA;
107 } else { 107 } else {
108 // unkown hash type 108 // unkown hash type
109 fprintf(stderr, "unknown hash type: %s\n", sstrdup_a(mp, hash_type).ptr); 109 log_ereport(
110 LOG_FAILURE,
111 "keyfile_parse: unknown hash type: %s",
112 sstrdup_a(mp, hash_type).ptr);
110 return 1; 113 return 1;
111 } 114 }
112 115
113 entry->hashdata = sstrdup_a(mp, hash_data); 116 entry->hashdata = sstrdup_a(mp, hash_data);
114 117

mercurial