Commit 1ae34842 authored by Niels Möller's avatar Niels Möller
Browse files

Hardcode charset to latin1. TODO: Create service objects.

Rev: src/lsh.c:1.11
Rev: src/lshd.c:1.12
parent 2d69723c
......@@ -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"))
{
......
......@@ -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"))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment