Skip to content

Commit

Permalink
Update HTTP URLs, and resolve most redirects
Browse files Browse the repository at this point in the history
Some of these changes were not mechanical,
but required subjective choices:

* Links to MUSCLE and PSCSlite were re-hosted based on Google searches.
* Gemalto.com redirects to a specific page on Thales.com.
  Gemalto was purchased by Thales, but to retain future redirection,
  only the URL protocol was modified (HTTP -> HTTPS).
* "Thinking in Python" links on mindview.net no longer resolve,
  and it's unclear what to update these to.
* Robert Brewer's import code on activestate.com no longer exists,
  and even ActiveState's intenal site search point to the dead link.
  • Loading branch information
kurtmckee authored and LudovicRousseau committed Sep 29, 2024
1 parent 4ea9ec1 commit 62944bc
Show file tree
Hide file tree
Showing 120 changed files with 132 additions and 133 deletions.
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pip install pyscard
Installing on windows from the source distribution
---------------------------------------------------

1. you will need [swig](http://www.swig.org), and a C compiler.
1. you will need [swig](https://www.swig.org/), and a C compiler.

You can install swig using:

Expand Down Expand Up @@ -97,7 +97,7 @@ Installation on GNU/Linux or macOS
Installing on GNU/Linux or macOS from the source distribution
-------------------------------------------------------------

1. you will need gcc, swig (http://www.swig.org), and pcsc-lite
1. you will need gcc, swig (https://www.swig.org/), and pcsc-lite
(https://pcsclite.apdu.fr/)

2. download the source distribution
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python3
"""Setup file for setuptools
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down Expand Up @@ -142,7 +142,7 @@ def run(self):
}

# FIXME Sourceforge downloads are unauthenticated, migrate to PyPI
kw['download_url'] = ('http://sourceforge.net/projects/%(name)s/files'
kw['download_url'] = ('https://sourceforge.net/projects/%(name)s/files'
'/%(name)s/%(name)s%%20%(version)s'
'/%(name)s-%(version)s.tar.gz/download' % kw)

Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/ATR.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""ATR class managing some of the Answer To Reset content.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/AbstractCardRequest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""AbstractCardRequest class.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Card.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Card class.
__author__ = "gemalto http://www.gemalto.com"
__author__ = "gemalto https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardConnection.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The CardConnection abstract class manages connections with a card and
apdu transmission.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardConnectionDecorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
abstract class, and allows dynamic addition of features to the
CardConnection, e.g. implementing a secure channel..
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardConnectionEvent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""The CardConnectionEvent is sent to CardConnectionObserver objects
when a CardConnection event occurs.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardConnectionObserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
CardConnectionObserver is a base class for objects that are to be notified
upon CardConnection events.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardMonitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
CardMonitor is a singleton object notifying registered CardObservers
upon reader insertion/removal.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardRequest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Smartcard CardRequest.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardService.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
The card service performs its specific smart card functionality by accessing
the smartcard with a CardConnection.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/CardType.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Abstract CarType.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/ClassLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Source: Robert Brewer at the Python Cookbook:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/223972
License: PSF license (http://docs.python.org/license.html).
License: PSF license (https://docs.python.org/license.html).
"""


Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_ATR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script for the smartcard.ATR utility class.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2009 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that illustrates card connection decorators.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that monitors card connection events.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_CustomCardType.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that demonstrates how to create a custom CardType.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python3
"""Sample script for APDU error checking with a custom error checker.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_ErrorChecking.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env python3
"""Sample script for APDU error checking.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that illustrates exclusive card connection decorators.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_MonitorCards.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that monitors smartcard insertion/removal.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Sample script that monitors smartcard insertion/removal and select
DF_TELECOM on inserted cards
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_MonitorReaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that monitors smartcard readers.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Sample script that monitors card insertions,
connects to cards and transmit an apdu
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that defines a custom card connection observer.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/framework/sample_toHexString.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script to illustrate toHexString() utility method
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_getATR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: get card ATR in first pcsc reader
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_getAttrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: List card attributes
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_getStatusChange.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: Detect card insertion/removal
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_listCards.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: List cards introduced in the system
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_listInterfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: List card interfaces
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_locateCards.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: Locate cards in the system
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_readerGroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: illustrate reader groups functions
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: List PCSC readers
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_selectDFTelecom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: Select DF_TELECOM on a SIM card
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/scard-api/sample_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample for python PCSC wrapper module: perform a simple transaction
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/simple/getATR.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that displays the ATR of inserted cards.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/simple/getATR_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that displays the ATR of inserted cards.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/simple/selectDF_TELECOM.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Sample script that tries to select the DF_TELECOM on all inserted cards.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Simple panel that defines a dialog to send APDUs to a card.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/wx/apdumanager/apdumanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Simple application to send APDUs to a card.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
2 changes: 1 addition & 1 deletion src/smartcard/Examples/wx/apdumanager/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Setup script to build a standalone apdumanager.exe executable on windows
using py2exe. Run: python.exe setup.py py2exe, to build executable file.
__author__ = "http://www.gemalto.com"
__author__ = "https://www.gemalto.com/"
Copyright 2001-2012 gemalto
Author: Jean-Daniel Aussel, mailto:jean-daniel.aussel@gemalto.com
Expand Down
Loading

0 comments on commit 62944bc

Please sign in to comment.