sc_check_sw man page on SuSE

Man page or keyword search:  
man Server   14857 pages
apropos Keyword Search (all sections)
Output format
SuSE logo
[printable version]

SC_CHECK_SW(3)		     OpenSC API reference		SC_CHECK_SW(3)

NAME
       sc_check_sw - Check return status from a card transaction

SYNOPSIS
	   #include <opensc.h>

	   int sc_check_sw(struct sc_card *card, int sw1, int sw2);

DESCRIPTION
       This function checks the return status as given in sw1 and sw2 against
       the card-specific errors of card. These are set by sc_transmit_apdu()
       in the apdu.sw1 and apdu.sw2 fields, respectively.

       The function should be called after every APDU transmission, to convert
       the card´s status code to an OpenSC error code.

RETURN VALUE
       Returns 0 if successful, or a negative value in case of error.

opensc				  08/27/2008			SC_CHECK_SW(3)
[top]

List of man pages available for SuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net