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
23e209a6
Commit
23e209a6
authored
14 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Update for new API in Cryptlib 3.4
parent
243c3838
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/syncterm/ssh.c
+3
-3
3 additions, 3 deletions
src/syncterm/ssh.c
src/syncterm/st_crypt.h
+3
-0
3 additions, 0 deletions
src/syncterm/st_crypt.h
with
6 additions
and
3 deletions
src/syncterm/ssh.c
+
3
−
3
View file @
23e209a6
...
...
@@ -56,7 +56,7 @@ void ssh_input_thread(void *args)
sprintf
(
str
,
"Error %d recieving data"
,
status
);
strcat
(
str
,
"
\r\n\r\n
"
);
err_len
=
sizeof
(
str
)
-
strlen
(
str
)
-
1
;
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_
INT_
ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
uifcmsg
(
"Error recieving data"
,
str
);
break
;
}
...
...
@@ -104,7 +104,7 @@ void ssh_output_thread(void *args)
sprintf
(
str
,
"Error %d sending data"
,
status
);
strcat
(
str
,
"
\r\n\r\n
"
);
err_len
=
sizeof
(
str
)
-
strlen
(
str
)
-
1
;
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_
INT_
ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
uifcmsg
(
"Error sending data"
,
str
);
}
sent
+=
ret
;
...
...
@@ -219,7 +219,7 @@ int ssh_connect(struct bbslist *bbs)
sprintf
(
str
,
"Error %d activating session"
,
status
);
strcat
(
str
,
"
\r\n\r\n
"
);
err_len
=
sizeof
(
str
)
-
strlen
(
str
)
-
1
;
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_
INT_
ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
cl
.
GetAttributeString
(
ssh_session
,
CRYPT_ATTRIBUTE_ERRORMESSAGE
,
str
+
strlen
(
str
),
&
err_len
);
uifcmsg
(
"Error activating session"
,
str
);
conn_api
.
terminate
=
1
;
uifc
.
pop
(
NULL
);
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/st_crypt.h
+
3
−
0
View file @
23e209a6
...
...
@@ -5,6 +5,9 @@
#ifndef WITHOUT_CRYPTLIB
#include
"cryptlib.h"
#if CRYPTLIB_VERSION < 3400
#define CRYPT_ATTRIBUTE_ERRORMESSAGE CRYPT_ATTRIBUTE_INT_ERRORMESSAGE
#endif
#if defined(_MSC_VER)
#undef C_RET
...
...
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