Add autoPIN method to cryptographic card module in tdehwlib

pull/1/head
Timothy Pearson 9 years ago
parent 991dd06fc6
commit fa4e775460

@ -570,6 +570,15 @@ void TDECryptographicCardDevice::setProvidedPin(TQString pin) {
} }
} }
TQString TDECryptographicCardDevice::autoPIN() {
// TODO
// Use subjAltName field in card certificate to provide the card's PIN,
// in order to support optional pin-less operation.
// FIXME
// Disable fully automatic card login support for now...
return TQString::null;
}
void TDECryptographicCardDevice::workerRequestedPin(TQString prompt) { void TDECryptographicCardDevice::workerRequestedPin(TQString prompt) {
emit(pinRequested(prompt, this)); emit(pinRequested(prompt, this));
} }

@ -105,6 +105,16 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
*/ */
void setProvidedPin(TQString pin); void setProvidedPin(TQString pin);
/**
* If the inserted card and system configuration provides a PIN for automatic
* pin-less operation, @returns the PIN to use when unlocking the card, otherwise
* @returns TQString::null.
*
* @see pinRequested(TQString prompt)
* @see setProvidedPin(TQString pin)
*/
TQString autoPIN();
/** /**
* If monitoring of insert / remove events is enabled, and a card has been inserted, * If monitoring of insert / remove events is enabled, and a card has been inserted,
* decrypt data originally encrypted using a public key from one of the certificates * decrypt data originally encrypted using a public key from one of the certificates

Loading…
Cancel
Save