*/
#include "includes.h"
-RCSID("$OpenBSD: hostfile.c,v 1.33 2005/03/01 10:40:26 djm Exp $");
+RCSID("$OpenBSD: hostfile.c,v 1.34 2005/03/10 22:01:05 deraadt Exp $");
#include <resolv.h>
#include <openssl/hmac.h>
salt_len, ret);
return (-1);
}
-
+
return (0);
}
HMAC_Final(&mac_ctx, result, NULL);
HMAC_cleanup(&mac_ctx);
- if (__b64_ntop(salt, len, uu_salt, sizeof(uu_salt)) == -1 ||
+ if (__b64_ntop(salt, len, uu_salt, sizeof(uu_salt)) == -1 ||
__b64_ntop(result, len, uu_result, sizeof(uu_result)) == -1)
fatal("host_hash: __b64_ntop failed");
*/
int
-add_host_to_hostfile(const char *filename, const char *host, const Key *key,
+add_host_to_hostfile(const char *filename, const char *host, const Key *key,
int store_hash)
{
FILE *f;