~ubuntu-branches/ubuntu/natty/openssh/natty

« back to all changes in this revision

Viewing changes to debian/patches/ssh-vulnkey.patch

  • Committer: Colin Watson
  • Date: 2010-08-23 23:01:05 UTC
  • mto: This revision was merged to the branch mainline in revision 3216.
  • Revision ID: cjwatson@debian.org-20100823230105-kel8y283lmt5zyrc
unconstify key argument to blacklisted_key_in_file and blacklisted_key

Show diffs side-by-side

added added

removed removed

Lines of Context:
229
229
 
230
230
+/* Scan a blacklist of known-vulnerable keys in blacklist_file. */
231
231
+static int
232
 
+blacklisted_key_in_file(const Key *key, const char *blacklist_file, char **fp)
 
232
+blacklisted_key_in_file(Key *key, const char *blacklist_file, char **fp)
233
233
+{
234
234
+       int fd = -1;
235
235
+       char *dgst_hex = NULL;
334
334
+ * its fingerprint is returned in *fp, unless fp is NULL.
335
335
+ */
336
336
+int
337
 
+blacklisted_key(const Key *key, char **fp)
 
337
+blacklisted_key(Key *key, char **fp)
338
338
+{
339
339
+       Key *public;
340
340
+       char *blacklist_file;
372
372
 int     key_perm_ok(int, const char *);
373
373
 int     key_in_file(Key *, const char *, int);
374
374
 
375
 
+int     blacklisted_key(const Key *key, char **fp);
 
375
+int     blacklisted_key(Key *key, char **fp);
376
376
+
377
377
 #endif
378
378
Index: b/pathnames.h