Permalink
Browse files

Imported Upstream version 0.12.0+svn5391

  • Loading branch information...
1 parent b49b971 commit 1ef30db4e7c5bbb5a9c0071fe2dc69840a8cd03f @marschap committed Apr 24, 2011
Showing with 9,749 additions and 5,037 deletions.
  1. BIN MacOSX/10.5/resources/InstallationCheck.strings
  2. +170 −0 MacOSX/10.5/resources/License.html
  3. +26 −0 MacOSX/10.5/resources/ReadMe.html
  4. +26 −0 MacOSX/10.5/resources/ReadMe.html.in
  5. BIN MacOSX/10.5/resources/background.jpg
  6. +116 −0 MacOSX/10.5/scripts/InstallationCheck
  7. +25 −0 MacOSX/10.5/scripts/postflight
  8. BIN MacOSX/10.6/resources/InstallationCheck.strings
  9. +170 −0 MacOSX/10.6/resources/License.html
  10. +26 −0 MacOSX/10.6/resources/ReadMe.html
  11. +26 −0 MacOSX/10.6/resources/ReadMe.html.in
  12. BIN MacOSX/10.6/resources/background.jpg
  13. +116 −0 MacOSX/10.6/scripts/InstallationCheck
  14. +24 −0 MacOSX/10.6/scripts/postflight
  15. +17 −0 MacOSX/Makefile.am
  16. +417 −0 MacOSX/Makefile.in
  17. +8 −0 MacOSX/build
  18. +141 −0 MacOSX/build-package.in
  19. +104 −0 MacOSX/libtool-bundle
  20. +25 −0 MacOSX/opensc-uninstall
  21. +1 −1 Makefile.am
  22. +14 −5 Makefile.in
  23. +2 −2 aclocal.m4
  24. +3 −3 config.h.in
  25. +1,917 −1,085 configure
  26. +15 −13 configure.ac
  27. +2 −1 doc/Makefile.in
  28. +90 −0 doc/tools/eidenv.xml
  29. +130 −0 doc/tools/piv-tool.xml
  30. +2 −0 doc/tools/tools.xml
  31. +2 −1 etc/Makefile.in
  32. +2 −3 etc/opensc.conf.in
  33. +2,598 −1,369 ltmain.sh
  34. +1,235 −761 m4/libtool.m4
  35. +7 −6 m4/ltoptions.m4
  36. +6 −6 m4/ltversion.m4
  37. +9 −3 m4/lt~obsolete.m4
  38. +1 −1 src/Makefile.am
  39. +3 −2 src/Makefile.in
  40. +2 −7 src/Makefile.mak
  41. +0 −29 src/cardmod/Makefile.am
  42. +2 −1 src/common/Makefile.in
  43. +3 −3 src/common/Makefile.mak
  44. +2 −1 src/libopensc/Makefile.in
  45. +26 −5 src/libopensc/asn1.c
  46. +1 −3 src/libopensc/card-asepcos.c
  47. +0 −1 src/libopensc/card-authentic.c
  48. +4 −4 src/libopensc/card-cardos.c
  49. +11 −13 src/libopensc/card-flex.c
  50. +0 −3 src/libopensc/card-iasecc.c
  51. +0 −3 src/libopensc/card-muscle.c
  52. +23 −10 src/libopensc/card-piv.c
  53. +1 −1 src/libopensc/card-rtecp.c
  54. +1 −1 src/libopensc/card-setcos.c
  55. +1 −1 src/libopensc/card-tcos.c
  56. +145 −113 src/libopensc/card.c
  57. +33 −18 src/libopensc/ctx.c
  58. +2 −2 src/libopensc/dir.c
  59. +5 −0 src/libopensc/libopensc.exports
  60. +10 −11 src/libopensc/opensc.h
  61. +1 −1 src/libopensc/pkcs15-gemsafeV1.c
  62. +2 −2 src/libopensc/pkcs15-oberthur.c
  63. +122 −2 src/libopensc/pkcs15-piv.c
  64. +93 −4 src/libopensc/pkcs15-pubkey.c
  65. +1 −1 src/libopensc/pkcs15-syn.c
  66. +181 −96 src/libopensc/pkcs15.c
  67. +30 −14 src/libopensc/pkcs15.h
  68. +1 −1 src/libopensc/reader-pcsc.c
  69. +2 −2 src/libopensc/types.h
  70. +29 −0 src/minidriver/Makefile.am
  71. +37 −33 src/{cardmod → minidriver}/Makefile.in
  72. +3 −3 src/{cardmod → minidriver}/Makefile.mak
  73. +2 −3 src/{cardmod/cardmod-westcos.reg → minidriver/minidriver-westcos.reg}
  74. +210 −263 src/{cardmod/cardmod.c → minidriver/minidriver.c}
  75. 0 src/{cardmod/cardmod.exports → minidriver/minidriver.exports}
  76. +4 −5 src/{cardmod/cardmod.inf → minidriver/opensc-minidriver.inf}
  77. +4 −5 src/{cardmod/cardmod.inf.in → minidriver/opensc-minidriver.inf.in}
  78. +2 −1 src/pkcs11/Makefile.in
  79. +78 −49 src/pkcs11/framework-pkcs15.c
  80. +0 −2 src/pkcs11/misc.c
  81. +0 −1 src/pkcs11/sc-pkcs11.h
  82. +2 −1 src/pkcs15init/Makefile.in
  83. +1 −1 src/pkcs15init/Makefile.mak
  84. +2 −3 src/pkcs15init/iasecc_generic_oberthur.profile
  85. +18 −10 src/pkcs15init/myeid.profile
  86. +4 −4 src/pkcs15init/pkcs15-authentic.c
  87. +1 −1 src/pkcs15init/pkcs15-cardos.c
  88. +6 −7 src/pkcs15init/pkcs15-iasecc.c
  89. +16 −3 src/pkcs15init/pkcs15-init.h
  90. +117 −108 src/pkcs15init/pkcs15-lib.c
  91. +17 −7 src/pkcs15init/pkcs15-myeid.c
  92. +2 −10 src/pkcs15init/pkcs15-setcos.c
  93. +1 −1 src/pkcs15init/profile.c
  94. +2 −1 src/scconf/Makefile.in
  95. +1 −1 src/scconf/Makefile.mak
  96. +2 −1 src/tests/Makefile.in
  97. +2 −2 src/tests/regression/Makefile.am
  98. +9 −10 src/tests/regression/Makefile.in
  99. +1 −4 src/tools/Makefile.am
  100. +5 −19 src/tools/Makefile.in
  101. +1 −1 src/tools/Makefile.mak
  102. +1 −1 src/tools/cardos-tool.c
  103. +1 −1 src/tools/cryptoflex-tool.c
  104. +1 −1 src/tools/netkey-tool.c
  105. +115 −67 src/tools/opensc-explorer.c
  106. +182 −115 src/tools/opensc-tool.c
  107. +199 −11 src/tools/piv-tool.c
  108. +189 −31 src/tools/pkcs11-tool.c
  109. +1 −1 src/tools/pkcs15-crypt.c
  110. +22 −15 src/tools/pkcs15-init.c
  111. +25 −8 src/tools/pkcs15-tool.c
  112. +0 −556 src/tools/rutoken-tool.c
  113. +1 −1 src/tools/westcos-tool.c
  114. +32 −38 win32/Make.rules.mak
  115. +1 −1 win32/Makefile.am
  116. +8 −4 win32/Makefile.in
  117. +11 −3 win32/Makefile.mak
  118. +192 −0 win32/OpenSC.wxs.in
  119. +4 −4 win32/versioninfo.rc
  120. +4 −4 win32/versioninfo.rc.in
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <style type="text/css">
+ body { font: 12px Helvetica; }
+ h1 { font-size: 16px; }
+ h2 { font-size: 13px; padding-bottom: 5px; padding-top: 5px; }
+ p { padding: 10px; }
+ </style>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+</head>
+<body>
+
+
+<h1>OpenSC, version 0.12.1-svn</h1>
+<p>for Mac OS X 10.5 (Leopard), universal (32-bit i386 and ppc)</p>
+
+<p>OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures.</p>
+
+<p>OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2133">PKCS#11 API</a> so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2141">PKCS#15</a> standard and aims to be compatible with every software/card that does so, too.</p>
+
+<h2>Documentation:</h2>
+<p>The OpenSC Wiki is available at: <a href="http://www.opensc-project.org/opensc">http://www.opensc-project.org/opensc</a> and should be consulted for further documentation and support.</p>
+
+</body>
+</html>
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <style type="text/css">
+ body { font: 12px Helvetica; }
+ h1 { font-size: 16px; }
+ h2 { font-size: 13px; padding-bottom: 5px; padding-top: 5px; }
+ p { padding: 10px; }
+ </style>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+</head>
+<body>
+
+
+<h1>OpenSC, version @PACKAGE_VERSION@</h1>
+<p>for Mac OS X 10.5 (Leopard), universal (32-bit i386 and ppc)</p>
+
+<p>OpenSC provides a set of libraries and utilities to work with smart cards. Its main focus is on cards that support cryptographic operations, and facilitate their use in security applications such as authentication, mail encryption and digital signatures.</p>
+
+<p>OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2133">PKCS#11 API</a> so applications supporting this API (such as Mozilla Firefox and Thunderbird) can use it. On the card OpenSC implements the <a href="http://www.rsa.com/rsalabs/node.asp?id=2141">PKCS#15</a> standard and aims to be compatible with every software/card that does so, too.</p>
+
+<h2>Documentation:</h2>
+<p>The OpenSC Wiki is available at: <a href="http://www.opensc-project.org/opensc">http://www.opensc-project.org/opensc</a> and should be consulted for further documentation and support.</p>
+
+</body>
+</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,116 @@
+#!/usr/bin/perl
+
+my $SYSTEM_VERS = "/System/Library/CoreServices/SystemVersion.plist";
+my $EXIT_VALUE = 0;
+
+if ( $ENV{OS_INSTALL} == 1) {
+ exit (0);
+}
+
+DO_CHECKS: {
+ # 10.5.8 or higher system must be active
+ if(CheckVersion("$SYSTEM_VERS", "10.5.8", "ProductVersion", "<")) {
+ $EXIT_VALUE = ((1 << 6) | ( 1 << 5 ) | 17 );
+ last;
+ }
+ # 10.5 system must be active
+ if(CheckVersion("$SYSTEM_VERS", "10.6", "ProductVersion", ">")) {
+ $EXIT_VALUE = ((1 << 6) | ( 1 << 5 ) | 18 );
+ last;
+ }
+}
+exit($EXIT_VALUE);
+
+###
+
+sub CheckVersion
+{
+ my $path = $_[0];
+ my $version = $_[1];
+ my $keyName = $_[2];
+ my $operator = $_[3];
+
+ if (! -e $path) {
+ return 0;
+ }
+
+ if (!$operator) {
+ $operator = "==";
+ }
+
+ my $oldSeperator = $/;
+ $/ = \0;
+
+ open( PLIST, "$path") || do {
+ return 0;
+ };
+
+ $plistData = <PLIST>;
+ $plistData =~ /<dict>(.*?)<\/dict>/gis;
+
+ @items = split(/<key>/, $plistData);
+
+ shift @items;
+ foreach $item (@items) {
+ $item =~ /(.*?)<\/key>.*?<string>(.*?)<\/string>/gis;
+ $versiondata{ $1 } = $2;
+ }
+
+ close(PLIST);
+
+ $/ = $oldSeperator;
+
+ @theVersionArray = split(/\./, $versiondata{$keyName});
+ for ($i = 0; $i < 3; $i++) {
+ if(!$theVersionArray[$i]) {
+ $theVersionArray[$i] = '0';
+ }
+ }
+
+ @versionArray = split(/\./, $version);
+
+ my $actualVersion;
+
+ for ($i = 0; $i < 3; $i++) {
+ if (($theVersionArray[$i] != $versionArray[$i]) or ($i == 2)) {
+
+ $actualVersion = $theVersionArray[$i];
+ $version = $versionArray[$i];
+
+ last;
+ }
+ }
+
+ my $expression = '$actualVersion ' . $operator . ' $version';
+ if( eval ($expression) )
+ {
+ return 1;
+ }
+ else
+ {
+ return 0;
+ }
+
+}
+
+sub CheckIOReg
+{
+ $RESULT = 0;
+
+ open(IOREGOUT, "/usr/sbin/ioreg |");
+
+ foreach $LINE (<IOREGOUT>) {
+ $BUF .= $LINE;
+ }
+ close(IOREGOUT);
+
+ foreach $ITEM (@_) {
+ if($BUF =~ /$ITEM/g) {
+ $RESULT = 1;
+ last;
+ }
+ }
+
+ return($RESULT);
+}
+
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+if !([ -e "/usr/lib/opensc-pkcs11.so" ])
+then
+ ln -s /Library/OpenSC/lib/opensc-pkcs11.so /usr/lib/opensc-pkcs11.so
+fi
+if [ -e "/Library/OpenSC/etc/opensc.conf.md5" ]
+then
+ read cs_fromfile file < "/Library/OpenSC/etc/opensc.conf.md5"
+ cs_calculated=$( md5 -q "/Library/OpenSC/etc/opensc.conf")
+ if [ "$cs_fromfile" = "$cs_calculated" ]
+ then
+ mv /Library/OpenSC/etc/opensc.conf.orig /Library/OpenSC/etc/opensc.conf
+ md5 -r /Library/OpenSC/etc/opensc.conf > /Library/OpenSC/etc/opensc.conf.md5
+ fi
+else
+ mv /Library/OpenSC/etc/opensc.conf.orig /Library/OpenSC/etc/opensc.conf
+ md5 -r /Library/OpenSC/etc/opensc.conf > /Library/OpenSC/etc/opensc.conf.md5
+fi
+for f in /Library/OpenSC/bin/*
+do
+ ln -sf $f /usr/local/bin
+done
+
+exit 0
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1ef30db

Please sign in to comment.