Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
1ae34842
Commit
1ae34842
authored
Oct 20, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hardcode charset to latin1. TODO: Create service objects.
Rev: src/lsh.c:1.11 Rev: src/lshd.c:1.12
parent
2d69723c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
src/lsh.c
src/lsh.c
+7
-2
src/lshd.c
src/lshd.c
+6
-1
No files found.
src/lsh.c
View file @
1ae34842
...
...
@@ -32,6 +32,7 @@
#include "alist.h"
#include "atoms.h"
#include "charset.h"
#include "client.h"
#include "client_keyexchange.h"
#include "crypto.h"
...
...
@@ -96,10 +97,12 @@ int main(int argc, char **argv)
struct
make_kexinit
*
make_kexinit
;
struct
packet_handler
*
kexinit_handler
;
struct
lookup_verifier
*
lookup
;
/* For filtering messages. Could perhaps also be used when converting
* strings to and from UTF8. */
setlocale
(
LC_CTYPE
,
""
);
/* FIXME: Choose character set depending on the locale */
set_local_charset
(
CHARSET_LATIN1
);
while
((
option
=
getopt
(
argc
,
argv
,
"dp:qv"
))
!=
-
1
)
switch
(
option
)
...
...
@@ -138,7 +141,9 @@ int main(int argc, char **argv)
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
make_kexinit
=
make_test_kexinit
(
r
);
kexinit_handler
=
make_kexinit_handler
(
CONNECTION_CLIENT
,
make_kexinit
,
algorithms
);
make_kexinit
,
algorithms
/* FIXME: Initialize some service */
);
if
(
!
get_inaddr
(
&
remote
,
host
,
port
,
"tcp"
))
{
...
...
src/lshd.c
View file @
1ae34842
...
...
@@ -32,6 +32,7 @@
#include "alist.h"
#include "atoms.h"
#include "charset.h"
#include "crypto.h"
#include "format.h"
#include "io.h"
...
...
@@ -133,6 +134,8 @@ int main(int argc, char **argv)
/* For filtering messages. Could perhaps also be used when converting
* strings to and from UTF8. */
setlocale
(
LC_CTYPE
,
""
);
/* FIXME: Choose character set depending on the locale */
set_local_charset
(
CHARSET_LATIN1
);
while
((
option
=
getopt
(
argc
,
argv
,
"dp:qi:v"
))
!=
-
1
)
switch
(
option
)
...
...
@@ -172,7 +175,9 @@ int main(int argc, char **argv)
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
make_kexinit
=
make_test_kexinit
(
r
);
kexinit_handler
=
make_kexinit_handler
(
CONNECTION_SERVER
,
make_kexinit
,
algorithms
);
make_kexinit
,
algorithms
/* FIXME: Initialize some service */
);
if
(
!
get_inaddr
(
&
local
,
host
,
port
,
"tcp"
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment