diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/apdu_client.rb | 18 | ||||
-rw-r--r-- | src/bluetooth_client.rb | 19 | ||||
-rwxr-xr-x | src/demo_client.rb | 18 | ||||
-rw-r--r-- | src/lib/apdu.rb | 19 | ||||
-rw-r--r-- | src/lib/client.rb | 18 | ||||
-rw-r--r-- | src/lib/common.rb | 18 | ||||
-rw-r--r-- | src/lib/server.rb | 18 | ||||
-rwxr-xr-x | src/pcsc_server.rb | 18 | ||||
-rwxr-xr-x | src/sim_server.rb | 18 |
9 files changed, 164 insertions, 0 deletions
diff --git a/src/apdu_client.rb b/src/apdu_client.rb index 8514bcf..88a903a 100755 --- a/src/apdu_client.rb +++ b/src/apdu_client.rb @@ -1,4 +1,22 @@ #!/usr/bin/env ruby +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end # This programm will forward APDU from a TCP port to a SAP server require 'lib/client' require 'socket' diff --git a/src/bluetooth_client.rb b/src/bluetooth_client.rb index bf69a0a..699fee5 100644 --- a/src/bluetooth_client.rb +++ b/src/bluetooth_client.rb @@ -1,3 +1,22 @@ +#!/usr/bin/env ruby +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end require 'lib/client' # SAP client require 'dbus' # libdbus-ruby diff --git a/src/demo_client.rb b/src/demo_client.rb index 06c2400..4d5adb5 100755 --- a/src/demo_client.rb +++ b/src/demo_client.rb @@ -1,4 +1,22 @@ #!/usr/bin/env ruby +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end # This programm will create a client which can be used to test servers require 'lib/client' require 'lib/apdu' diff --git a/src/lib/apdu.rb b/src/lib/apdu.rb index 4ac5ac1..a74472f 100644 --- a/src/lib/apdu.rb +++ b/src/lib/apdu.rb @@ -1,3 +1,22 @@ +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end + # transform binary string into readable hex string class String def to_hex_disp diff --git a/src/lib/client.rb b/src/lib/client.rb index 2edd815..3696948 100644 --- a/src/lib/client.rb +++ b/src/lib/client.rb @@ -1,3 +1,21 @@ +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end # this is the client part of the SAP # it implements the state machine for the client require 'lib/common' diff --git a/src/lib/common.rb b/src/lib/common.rb index 5076ddd..2a66837 100644 --- a/src/lib/common.rb +++ b/src/lib/common.rb @@ -1,3 +1,21 @@ +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end require 'stringio' # the common part of SAP server and client diff --git a/src/lib/server.rb b/src/lib/server.rb index 68c073a..ea5a952 100644 --- a/src/lib/server.rb +++ b/src/lib/server.rb @@ -1,3 +1,21 @@ +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end # this is the server part of the SAP # it implements the state machine for the server # this is an abstract class diff --git a/src/pcsc_server.rb b/src/pcsc_server.rb index 641560e..a06c1e7 100755 --- a/src/pcsc_server.rb +++ b/src/pcsc_server.rb @@ -1,4 +1,22 @@ #!/usr/bin/env ruby +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end require 'lib/server' require 'socket' require 'rubygems' diff --git a/src/sim_server.rb b/src/sim_server.rb index 47f736f..b6873dc 100755 --- a/src/sim_server.rb +++ b/src/sim_server.rb @@ -1,4 +1,22 @@ #!/usr/bin/env ruby +=begin +This file is part of SAP. + +SAP is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +SAP is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with SAP. If not, see <http://www.gnu.org/licenses/>. + +Copyright (C) 2011 Kevin "tsaitgaist" Redon kevredon@mail.tsaitgaist.info +=end require 'lib/server' require 'lib/apdu' require 'socket' |