Displaying 6 results from an estimated 6 matches for "add_host_to_hostfil".
Did you mean:
add_host_to_hostfile
2023 Jan 30
12
[Bug 3529] New: `add_host_to_hostfile` should take into consideration that the known_hosts file isn't terminated with a newline character.
https://bugzilla.mindrot.org/show_bug.cgi?id=3529
Bug ID: 3529
Summary: `add_host_to_hostfile` should take into consideration
that the known_hosts file isn't terminated with a
newline character.
Product: Portable OpenSSH
Version: 9.1p1
Hardware: ix86
OS: Linux
Status: NEW
Sever...
2006 Feb 04
2
[PATCH] allow user to update changed key in known_hosts
...o the
- * local known_hosts file.
- */
- if (options.check_host_ip && ip_status == HOST_NEW) {
- snprintf(hostline, sizeof(hostline), "%s,%s",
- host, ip);
- hostp = hostline;
- if (options.hash_known_hosts) {
- /* Add hash of host and IP separately */
- r = add_host_to_hostfile(user_hostfile, host,
- host_key, options.hash_known_hosts) &&
- add_host_to_hostfile(user_hostfile, ip,
- host_key, options.hash_known_hosts);
- } else {
- /* Add unhashed "host,ip" */
- r = add_host_to_hostfile(user_hostfile,
- hostline, host_...
2024 Oct 14
2
[RFC] Preferentially TOFU certificate authorities rather than host keys
...sts file.
*/
+ if (cert)
+ host_key = cert;
if (options.check_host_ip && ip_status == HOST_NEW) {
snprintf(hostline, sizeof(hostline), "%s,%s", host, ip);
hostp = hostline;
if (options.hash_known_hosts) {
/* Add hash of host and IP separately */
r = add_host_to_hostfile(user_hostfiles[0],
- host, host_key, options.hash_known_hosts) &&
- add_host_to_hostfile(user_hostfiles[0], ip,
- host_key, options.hash_known_hosts);
+ host, host_key, options.hash_known_hosts);
+ /* Don't add an IP entry if we're writing out a cert...
2004 Feb 12
1
OpenSSH_3.7.1p2 Floating point exception on Opteron
...() from /usr/lib/libcrypto.so.0.9.7
#2 0x0000002a95a09a09 in BN_bn2dec () from /usr/lib/libcrypto.so.0.9.7
#3 0x000000000041ec59 in write_bignum (f=0x5567c0, num=0x8ac7230489e80000) at key.c:368
#4 0x000000000041f060 in key_write (key=0x556050, f=0x5567c0) at key.c:504
#5 0x0000000000418971 in add_host_to_hostfile (
I see a similar report at:
http://www.mindrot.org/pipermail/openssh-unix-dev/2004-January/020326.html
Is this the same issue?
2023 Feb 04
26
[Bug 3533] New: tracking bug for openssh-9.3
https://bugzilla.mindrot.org/show_bug.cgi?id=3533
Bug ID: 3533
Summary: tracking bug for openssh-9.3
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Keywords: meta
Severity: enhancement
Priority: P5
Component: Miscellaneous
Assignee:
2004 Oct 03
0
[patch] tell user about hosts with same key
...HOST_OK, HOST_NEW, HOST_CHANGED, HOST_FOUND
} HostStatus;
+typedef struct HostList {
+ char *host;
+ struct HostList *next;
+} HostList;
+
int hostfile_read_key(char **, u_int *, Key *);
HostStatus check_host_in_hostfile(const char *, const char *,
const Key *, Key *, int *);
int add_host_to_hostfile(const char *, const char *, const Key *);
int lookup_key_in_hostfile_by_type(const char *, const char *,
int, Key *, int *);
+HostList *find_hosts_by_key(const char *, const Key *, HostList *);
+void free_hostlist(HostList *);
#endif