Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b9420e45
Commit
b9420e45
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Nope, can't use C_RET either.
parent
407eca73
No related branches found
No related tags found
No related merge requests found
Pipeline
#5775
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/st_crypt.h
+20
-20
20 additions, 20 deletions
src/syncterm/st_crypt.h
with
20 additions
and
20 deletions
src/syncterm/st_crypt.h
+
20
−
20
View file @
b9420e45
...
...
@@ -12,50 +12,50 @@
#endif
struct
crypt_funcs
{
C_RET
(
*
PopData
)(
C_IN
CRYPT_HANDLE
envelope
,
C_OUT
void
C_PTR
buffer
,
int
(
*
PopData
)(
C_IN
CRYPT_HANDLE
envelope
,
C_OUT
void
C_PTR
buffer
,
C_IN
int
length
,
C_OUT
int
C_PTR
bytesCopied
);
C_RET
(
*
PushData
)(
C_IN
CRYPT_HANDLE
envelope
,
C_IN
void
C_PTR
buffer
,
int
(
*
PushData
)(
C_IN
CRYPT_HANDLE
envelope
,
C_IN
void
C_PTR
buffer
,
C_IN
int
length
,
C_OUT
int
C_PTR
bytesCopied
);
C_RET
(
*
FlushData
)(
C_IN
CRYPT_HANDLE
envelope
);
C_RET
(
*
Init
)(
void
);
C_RET
(
*
End
)(
void
);
C_RET
(
*
CreateSession
)(
C_OUT
CRYPT_SESSION
C_PTR
session
,
int
(
*
FlushData
)(
C_IN
CRYPT_HANDLE
envelope
);
int
(
*
Init
)(
void
);
int
(
*
End
)(
void
);
int
(
*
CreateSession
)(
C_OUT
CRYPT_SESSION
C_PTR
session
,
C_IN
CRYPT_USER
cryptUser
,
C_IN
CRYPT_SESSION_TYPE
formatType
);
C_RET
(
*
GetAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
int
(
*
GetAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
C_IN
CRYPT_ATTRIBUTE_TYPE
attributeType
,
C_OUT
int
C_PTR
value
);
C_RET
(
*
GetAttributeString
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
int
(
*
GetAttributeString
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
C_IN
CRYPT_ATTRIBUTE_TYPE
attributeType
,
C_OUT
void
C_PTR
value
,
C_OUT
int
C_PTR
valueLength
);
C_RET
(
*
SetAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
int
(
*
SetAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
C_IN
CRYPT_ATTRIBUTE_TYPE
attributeType
,
C_IN
int
value
);
C_RET
(
*
SetAttributeString
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
int
(
*
SetAttributeString
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
C_IN
CRYPT_ATTRIBUTE_TYPE
attributeType
,
C_IN
void
C_PTR
value
,
C_IN
int
valueLength
);
C_RET
(
*
DestroySession
)(
C_IN
CRYPT_SESSION
session
);
C_RET
(
*
AddRandom
)(
C_IN
void
C_PTR
randomData
,
C_IN
int
randomDataLength
);
C_RET
(
*
DeleteAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
int
(
*
DestroySession
)(
C_IN
CRYPT_SESSION
session
);
int
(
*
AddRandom
)(
C_IN
void
C_PTR
randomData
,
C_IN
int
randomDataLength
);
int
(
*
DeleteAttribute
)(
C_IN
CRYPT_HANDLE
cryptHandle
,
C_IN
CRYPT_ATTRIBUTE_TYPE
attributeType
);
C_RET
(
*
KeysetOpen
)(
C_OUT
CRYPT_KEYSET
C_PTR
keyset
,
int
(
*
KeysetOpen
)(
C_OUT
CRYPT_KEYSET
C_PTR
keyset
,
C_IN
CRYPT_USER
cryptUser
,
C_IN
CRYPT_KEYSET_TYPE
keysetType
,
C_IN
C_STR
name
,
C_IN
CRYPT_KEYOPT_TYPE
options
);
C_RET
(
*
KeysetClose
)(
C_IN
CRYPT_KEYSET
keyset
);
C_RET
(
*
GenerateKey
)(
C_IN
CRYPT_CONTEXT
cryptContext
);
C_RET
(
*
AddPrivateKey
)(
C_IN
CRYPT_KEYSET
keyset
,
int
(
*
KeysetClose
)(
C_IN
CRYPT_KEYSET
keyset
);
int
(
*
GenerateKey
)(
C_IN
CRYPT_CONTEXT
cryptContext
);
int
(
*
AddPrivateKey
)(
C_IN
CRYPT_KEYSET
keyset
,
C_IN
CRYPT_HANDLE
cryptKey
,
C_IN
C_STR
password
);
C_RET
(
*
GetPrivateKey
)(
C_IN
CRYPT_KEYSET
keyset
,
int
(
*
GetPrivateKey
)(
C_IN
CRYPT_KEYSET
keyset
,
C_OUT
CRYPT_CONTEXT
C_PTR
cryptContext
,
C_IN
CRYPT_KEYID_TYPE
keyIDtype
,
C_IN
C_STR
keyID
,
C_IN_OPT
C_STR
password
);
C_RET
(
*
CreateContext
)(
C_OUT
CRYPT_CONTEXT
C_PTR
cryptContext
,
int
(
*
CreateContext
)(
C_OUT
CRYPT_CONTEXT
C_PTR
cryptContext
,
C_IN
CRYPT_USER
cryptUser
,
C_IN
CRYPT_ALGO_TYPE
cryptAlgo
);
C_RET
(
*
DestroyContext
)(
C_IN
CRYPT_CONTEXT
cryptContext
);
int
(
*
DestroyContext
)(
C_IN
CRYPT_CONTEXT
cryptContext
);
};
#endif // ifndef WITHOUT_CRYPTLIB
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment