Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

45 lines
1.0 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: cert509.h
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 8-10-95 RichardW Created
//
//----------------------------------------------------------------------------
#define SERIALNUMBER_LENGTH 16
#include "algid.h"
#include "rsa.h"
typedef struct _X509Certificate {
DWORD Version;
DWORD SerialNumber[4];
ALG_ID SignatureAlgorithm;
FILETIME ValidFrom;
FILETIME ValidUntil;
PSTR pszIssuer;
PSTR pszSubject;
LPBSAFE_PUB_KEY pPublicKey;
DWORD cbPublicKey;
} X509Certificate, * PX509Certificate;
BOOL
CrackCertificate(
PUCHAR pbCertificate,
DWORD cbCertificate,
BOOL VerifySignature,
PX509Certificate * ppCertificate);
VOID
FreeCertificate(
PX509Certificate pCertificate );