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
ca5a09cb
Commit
ca5a09cb
authored
10 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Since we're statically linking Cryptlib now, we don't need to song and dance
in the headers anymore (yay!)
parent
e59b8189
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syncterm/st_crypt.h
+12
-24
12 additions, 24 deletions
src/syncterm/st_crypt.h
with
12 additions
and
24 deletions
src/syncterm/st_crypt.h
+
12
−
24
View file @
ca5a09cb
...
...
@@ -9,46 +9,34 @@
#define CRYPT_ATTRIBUTE_ERRORMESSAGE CRYPT_ATTRIBUTE_INT_ERRORMESSAGE
#endif
#if defined(_MSC_VER) || defined(__MSVCRT__)
#undef C_RET
#define C_RET int
#endif
#ifdef _WIN32
#define HACK_HACK_HACK __stdcall
#else
#define HACK_HACK_HACK
#endif
struct
crypt_funcs
{
C_RET
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
FlushData
)(
C_IN
CRYPT_HANDLE
envelope
);
C_RET
(
HACK_HACK_HACK
*
Init
)(
void
);
C_RET
(
HACK_HACK_HACK
*
End
)(
void
);
C_RET
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
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
(
HACK_HACK_HACK
*
DestroySession
)(
C_IN
CRYPT_SESSION
session
);
C_RET
(
HACK_HACK_HACK
*
AddRandom
)(
C_IN
void
C_PTR
randomData
,
C_IN
int
randomDataLength
);
int
(
*
DestroySession
)(
C_IN
CRYPT_SESSION
session
);
int
(
*
AddRandom
)(
C_IN
void
C_PTR
randomData
,
C_IN
int
randomDataLength
);
};
#undef HACK_HACK_HACK
#endif
extern
struct
crypt_funcs
cl
;
...
...
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