cryptdlg: Implement GetFriendlyNameOfCertA/W.
This commit is contained in:
parent
6f33fee5af
commit
2f2ccbd779
|
@ -3,7 +3,7 @@ TOPOBJDIR = ../..
|
|||
SRCDIR = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
MODULE = cryptdlg.dll
|
||||
IMPORTS = kernel32
|
||||
IMPORTS = crypt32 kernel32
|
||||
|
||||
C_SRCS = \
|
||||
main.c
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
17 stub CertViewPropertiesW
|
||||
18 stub DllRegisterServer
|
||||
19 stub DllUnregisterServer
|
||||
20 stub GetFriendlyNameOfCertA
|
||||
21 stub GetFriendlyNameOfCertW
|
||||
20 stdcall GetFriendlyNameOfCertA(ptr ptr long)
|
||||
21 stdcall GetFriendlyNameOfCertW(ptr ptr long)
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wincrypt.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(cryptdlg);
|
||||
|
@ -44,3 +45,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
DWORD GetFriendlyNameOfCertA(PCCERT_CONTEXT pccert, LPSTR pchBuffer,
|
||||
DWORD cchBuffer)
|
||||
{
|
||||
return CertGetNameStringA(pccert, CERT_NAME_FRIENDLY_DISPLAY_TYPE, 0, NULL,
|
||||
pchBuffer, cchBuffer);
|
||||
}
|
||||
|
||||
DWORD GetFriendlyNameOfCertW(PCCERT_CONTEXT pccert, LPWSTR pchBuffer,
|
||||
DWORD cchBuffer)
|
||||
{
|
||||
return CertGetNameStringW(pccert, CERT_NAME_FRIENDLY_DISPLAY_TYPE, 0, NULL,
|
||||
pchBuffer, cchBuffer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue