dns.c (204917) | dns.c (221420) |
---|---|
1/* $OpenBSD: dns.c,v 1.26 2010/02/26 20:29:54 djm Exp $ */ | 1/* $OpenBSD: dns.c,v 1.27 2010/08/31 11:54:45 djm Exp $ */ |
2 3/* 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 5 * Copyright (c) 2003 Jakob Schlyter. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 71 unchanged lines hidden (view full) --- 81 82 switch (key->type) { 83 case KEY_RSA: 84 *algorithm = SSHFP_KEY_RSA; 85 break; 86 case KEY_DSA: 87 *algorithm = SSHFP_KEY_DSA; 88 break; | 2 3/* 4 * Copyright (c) 2003 Wesley Griffin. All rights reserved. 5 * Copyright (c) 2003 Jakob Schlyter. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 71 unchanged lines hidden (view full) --- 81 82 switch (key->type) { 83 case KEY_RSA: 84 *algorithm = SSHFP_KEY_RSA; 85 break; 86 case KEY_DSA: 87 *algorithm = SSHFP_KEY_DSA; 88 break; |
89 /* XXX KEY_ECDSA */ |
|
89 default: 90 *algorithm = SSHFP_KEY_RESERVED; /* 0 */ 91 } 92 93 if (*algorithm) { 94 *digest_type = SSHFP_HASH_SHA1; 95 *digest = key_fingerprint_raw(key, SSH_FP_SHA1, digest_len); 96 if (*digest == NULL) --- 209 unchanged lines hidden --- | 90 default: 91 *algorithm = SSHFP_KEY_RESERVED; /* 0 */ 92 } 93 94 if (*algorithm) { 95 *digest_type = SSHFP_HASH_SHA1; 96 *digest = key_fingerprint_raw(key, SSH_FP_SHA1, digest_len); 97 if (*digest == NULL) --- 209 unchanged lines hidden --- |