mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 08:56:17 +08:00
update SKF meth
This commit is contained in:
@@ -393,8 +393,8 @@ ULONG DEVAPI SKF_CreateFile(
|
||||
ULONG ulReadRights,
|
||||
ULONG ulWriteRights)
|
||||
{
|
||||
if (skf_method->CreateFile) {
|
||||
return skf_method->CreateFile(
|
||||
if (skf_method->CreateFileObject) {
|
||||
return skf_method->CreateFileObject(
|
||||
hApplication,
|
||||
szFileName,
|
||||
ulFileSize,
|
||||
@@ -408,8 +408,8 @@ ULONG DEVAPI SKF_DeleteFile(
|
||||
HAPPLICATION hApplication,
|
||||
LPSTR szFileName)
|
||||
{
|
||||
if (skf_method->DeleteFile) {
|
||||
return skf_method->DeleteFile(
|
||||
if (skf_method->DeleteFileObject) {
|
||||
return skf_method->DeleteFileObject(
|
||||
hApplication,
|
||||
szFileName);
|
||||
}
|
||||
@@ -452,8 +452,8 @@ ULONG DEVAPI SKF_ReadFile(
|
||||
BYTE *pbOutData,
|
||||
ULONG *pulOutLen)
|
||||
{
|
||||
if (skf_method->ReadFile) {
|
||||
return skf_method->ReadFile(
|
||||
if (skf_method->ReadFileObject) {
|
||||
return skf_method->ReadFileObject(
|
||||
hApplication,
|
||||
szFileName,
|
||||
ulOffset,
|
||||
@@ -471,8 +471,8 @@ ULONG DEVAPI SKF_WriteFile(
|
||||
BYTE *pbData,
|
||||
ULONG ulSize)
|
||||
{
|
||||
if (skf_method->WriteFile) {
|
||||
return skf_method->WriteFile(
|
||||
if (skf_method->WriteFileObject) {
|
||||
return skf_method->WriteFileObject(
|
||||
hApplication,
|
||||
szFileName,
|
||||
ulOffset,
|
||||
|
||||
@@ -532,12 +532,12 @@ typedef struct skf_method_st {
|
||||
SKF_DeleteApplication_FuncPtr DeleteApplication;
|
||||
SKF_OpenApplication_FuncPtr OpenApplication;
|
||||
SKF_CloseApplication_FuncPtr CloseApplication;
|
||||
SKF_CreateFile_FuncPtr CreateFile;
|
||||
SKF_DeleteFile_FuncPtr DeleteFile;
|
||||
SKF_CreateFile_FuncPtr CreateFileObject;
|
||||
SKF_DeleteFile_FuncPtr DeleteFileObject;
|
||||
SKF_EnumFiles_FuncPtr EnumFiles;
|
||||
SKF_GetFileInfo_FuncPtr GetFileInfo;
|
||||
SKF_ReadFile_FuncPtr ReadFile;
|
||||
SKF_WriteFile_FuncPtr WriteFile;
|
||||
SKF_ReadFile_FuncPtr ReadFileObject;
|
||||
SKF_WriteFile_FuncPtr WriteFileObject;
|
||||
SKF_CreateContainer_FuncPtr CreateContainer;
|
||||
SKF_DeleteContainer_FuncPtr DeleteContainer;
|
||||
SKF_EnumContainer_FuncPtr EnumContainer;
|
||||
|
||||
Reference in New Issue
Block a user