208-magic-add-ssh.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Author: Nicolas Collignon <tsointsoin@gmail.com>
  2. Description: New magic for OpenSSH key files (Closes: #439537).
  3. diff -Naurp file.orig/magic/Magdir/ssh file/magic/Magdir/ssh
  4. --- file.orig/magic/Magdir/ssh 1970-01-01 00:00:00.000000000 +0000
  5. +++ file/magic/Magdir/ssh 2009-02-18 11:50:34.000000000 +0000
  6. @@ -0,0 +1,8 @@
  7. +# Type: OpenSSH key files
  8. +# From: Nicolas Collignon <tsointsoin@gmail.com>
  9. +
  10. +0 string SSH\ PRIVATE\ KEY OpenSSH RSA1 private key,
  11. +>28 string >\0 version %s
  12. +
  13. +0 string ssh-dss\ OpenSSH DSA public key
  14. +0 string ssh-rsa\ OpenSSH RSA public key
  15. diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
  16. --- file.orig/magic/Makefile.am 2009-02-18 11:49:05.000000000 +0000
  17. +++ file/magic/Makefile.am 2009-02-18 11:51:14.000000000 +0000
  18. @@ -183,6 +183,7 @@ $(MAGIC_FRAGMENT_DIR)/softquad \
  19. $(MAGIC_FRAGMENT_DIR)/spec \
  20. $(MAGIC_FRAGMENT_DIR)/spectrum \
  21. $(MAGIC_FRAGMENT_DIR)/sql \
  22. +$(MAGIC_FRAGMENT_DIR)/ssh \
  23. $(MAGIC_FRAGMENT_DIR)/sun \
  24. $(MAGIC_FRAGMENT_DIR)/sysex \
  25. $(MAGIC_FRAGMENT_DIR)/teapot \
  26. diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
  27. --- file.orig/magic/Makefile.in 2009-02-18 11:49:05.000000000 +0000
  28. +++ file/magic/Makefile.in 2009-02-18 11:51:20.000000000 +0000
  29. @@ -345,6 +345,7 @@ $(MAGIC_FRAGMENT_DIR)/softquad \
  30. $(MAGIC_FRAGMENT_DIR)/spec \
  31. $(MAGIC_FRAGMENT_DIR)/spectrum \
  32. $(MAGIC_FRAGMENT_DIR)/sql \
  33. +$(MAGIC_FRAGMENT_DIR)/ssh \
  34. $(MAGIC_FRAGMENT_DIR)/sun \
  35. $(MAGIC_FRAGMENT_DIR)/sysex \
  36. $(MAGIC_FRAGMENT_DIR)/teapot \