Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

  1. #include "cardmod.h"
  2. extern PCARD_DATA pCardData;
  3. void DoConvertWideStringToLowerCase(WCHAR *pwsz);
  4. DWORD DoConvertBufferToBinary(BYTE *pIn, DWORD dwc,BYTE **pOut, DWORD *pdwcbOut);
  5. DWORD DoConvertBinaryToBuffer(BYTE *pIn, DWORD dwcbIn, BYTE **pOut, DWORD *dwcbOut);
  6. // Acquire a context for the target smart card
  7. DWORD DoAcquireCardContext(void);
  8. DWORD DoGetCardId(WCHAR **psz);
  9. void DoLeaveCardContext(void);
  10. DWORD DoChangePin(WCHAR *pOldPin, WCHAR *pNewPin);
  11. // Get a challenge buffer from the card. Render it as upper case BASE 64, and return it as a
  12. // string to the caller
  13. DWORD DoGetChallenge(BYTE **pChallenge, DWORD *dwcbChallenge);
  14. // Perform the PIN unblock, calling down to the card module, and assuming challenge-response
  15. // administrative authentication.
  16. //
  17. // The admin auth data is coming in as a case-unknown string from the user. Convert to binary,
  18. // and pass the converted blob to pfnCardUnblockPin
  19. DWORD DoCardUnblock(BYTE *pAuthData, DWORD dwcbAuthData,
  20. BYTE *pPinData, DWORD dwcbPinData);