cryptdlg: Implement GetFriendlyNameOfCertA/W.

This commit is contained in:
Juan Lang 2008-04-23 14:59:44 -07:00 committed by Alexandre Julliard
parent 6f33fee5af
commit 2f2ccbd779
3 changed files with 18 additions and 3 deletions

View File

@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = cryptdlg.dll
IMPORTS = kernel32
IMPORTS = crypt32 kernel32
C_SRCS = \
main.c

View File

@ -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)

View File

@ -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);
}