209-magic-add-ssl.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Author: Nicolas Collignon <tsointsoin@gmail.com>
  2. Description: New magic for OpenSSL certificates/key files (Closes: #439537).
  3. diff -Naurp file.orig/magic/Magdir/ssl file/magic/Magdir/ssl
  4. --- file.orig/magic/Magdir/ssl 1970-01-01 00:00:00.000000000 +0000
  5. +++ file/magic/Magdir/ssl 2009-02-18 11:53:12.000000000 +0000
  6. @@ -0,0 +1,7 @@
  7. +# Type: OpenSSL certificates/key files
  8. +# From: Nicolas Collignon <tsointsoin@gmail.com>
  9. +
  10. +0 string -----BEGIN\ CERTIFICATE----- PEM certificate
  11. +0 string -----BEGIN\ CERTIFICATE\ REQ PEM certificate request
  12. +0 string -----BEGIN\ RSA\ PRIVATE PEM RSA private key
  13. +0 string -----BEGIN\ DSA\ PRIVATE PEM DSA private key
  14. diff -Naurp file.orig/magic/Makefile.am file/magic/Makefile.am
  15. --- file.orig/magic/Makefile.am 2009-02-18 11:52:50.000000000 +0000
  16. +++ file/magic/Makefile.am 2009-02-18 11:53:27.000000000 +0000
  17. @@ -184,6 +184,7 @@ $(MAGIC_FRAGMENT_DIR)/spec \
  18. $(MAGIC_FRAGMENT_DIR)/spectrum \
  19. $(MAGIC_FRAGMENT_DIR)/sql \
  20. $(MAGIC_FRAGMENT_DIR)/ssh \
  21. +$(MAGIC_FRAGMENT_DIR)/ssl \
  22. $(MAGIC_FRAGMENT_DIR)/sun \
  23. $(MAGIC_FRAGMENT_DIR)/sysex \
  24. $(MAGIC_FRAGMENT_DIR)/teapot \
  25. diff -Naurp file.orig/magic/Makefile.in file/magic/Makefile.in
  26. --- file.orig/magic/Makefile.in 2009-02-18 11:52:50.000000000 +0000
  27. +++ file/magic/Makefile.in 2009-02-18 11:53:31.000000000 +0000
  28. @@ -346,6 +346,7 @@ $(MAGIC_FRAGMENT_DIR)/spec \
  29. $(MAGIC_FRAGMENT_DIR)/spectrum \
  30. $(MAGIC_FRAGMENT_DIR)/sql \
  31. $(MAGIC_FRAGMENT_DIR)/ssh \
  32. +$(MAGIC_FRAGMENT_DIR)/ssl \
  33. $(MAGIC_FRAGMENT_DIR)/sun \
  34. $(MAGIC_FRAGMENT_DIR)/sysex \
  35. $(MAGIC_FRAGMENT_DIR)/teapot \