sf1 / go-card

PC/SC client written in Go. Currently not maintained
MIT License
41 stars 23 forks source link

Make EstablishContext() more generic #7

Closed ElMostafaIdrassi closed 3 years ago

ElMostafaIdrassi commented 3 years ago

The current implementation always hardcodes the scope to CARD_SCOPE_SYSTEM when calling EstablishContext. This PR gives the caller more freedom by passing the wanted scope as an argument of EstablishContext. This of course breaks the API.

Signed-off-by: El Mostafa Idrassi el-mostafa.idrassi@prestalab.net

sf1 commented 3 years ago

Thanks, I think it is possible to avoid breaking the existing API and the extra smartcard/pcsc import with a few minor changes.