示例#1
0
def CertOpenStore(lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv,
                  dwFlags, pvPara):
    if isinstance(lpszStoreProvider, int_types):
        lpszStoreProvider = gdef.LPCSTR(lpszStoreProvider)
    return CertOpenStore.ctypes_function(lpszStoreProvider,
                                         dwMsgAndCertEncodingType, hCryptProv,
                                         dwFlags, pvPara)
示例#2
0
def CryptEncodeObjectEx(dwCertEncodingType, lpszStructType, pvStructInfo,
                        dwFlags, pEncodePara, pvEncoded, pcbEncoded):
    lpszStructType = gdef.LPCSTR(lpszStructType) if isinstance(
        lpszStructType, int_types) else lpszStructType
    return CryptEncodeObjectEx.ctypes_function(dwCertEncodingType,
                                               lpszStructType, pvStructInfo,
                                               dwFlags, pEncodePara, pvEncoded,
                                               pcbEncoded)
示例#3
0
 def name(self):
     return gdef.LPCSTR(ctypes.addressof(self) +
                        type(self).EaName.offset).value