| 1 | #pragma once |
| 2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 3 | |
| 4 | |
| 5 | #define MD_SSL_CERT_HASH ( IIS_MD_SSL_BASE+6 ) |
| 6 | #define MD_SSL_CERT_STORE_NAME ( IIS_MD_SSL_BASE+11 ) |
| 7 | //#define WIDE(x) WIDE2(x) |
| 8 | //#define WIDE2(x) L ## x |
| 9 | |
| 10 | |
| 11 | // structs |
| 12 | struct SCA_WEB_SSL_CERTIFICATE |
| 13 | { |
| 14 | WCHAR wzStoreName[65]; |
| 15 | BYTE rgbSHA1Hash[CB_CERTIFICATE_HASH]; |
| 16 | |
| 17 | SCA_WEB_SSL_CERTIFICATE* pNext; |
| 18 | }; |
| 19 | |
| 20 | |
| 21 | // prototypes |
| 22 | HRESULT ScaSslCertificateRead( |
| 23 | __in LPCWSTR wzWebId, |
| 24 | __in WCA_WRAPQUERY_HANDLE hSslCertQuery, |
| 25 | __inout SCA_WEB_SSL_CERTIFICATE** ppswscList |
| 26 | ); |
| 27 | |
| 28 | HRESULT ScaSslCertificateWriteMetabase( |
| 29 | __in IMSAdminBase* piMetabase, |
| 30 | __in LPCWSTR wzWebBase, |
| 31 | __in SCA_WEB_SSL_CERTIFICATE* pswscList |
| 32 | ); |
| 33 | |
| 34 | void ScaSslCertificateFreeList( |
| 35 | __in SCA_WEB_SSL_CERTIFICATE* pswscList |
| 36 | ); |