Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matt Johnston
dropbear
Commits
8e68d5e2
Commit
8e68d5e2
authored
Apr 03, 2013
by
Matt Johnston
Browse files
merge
parents
1a16da38
a6eb8249
Changes
2
Hide whitespace changes
Inline
Side-by-side
random.c
View file @
8e68d5e2
...
@@ -157,9 +157,9 @@ static void write_urandom()
...
@@ -157,9 +157,9 @@ static void write_urandom()
/* This is opportunistic, don't worry about failure */
/* This is opportunistic, don't worry about failure */
unsigned
char
buf
[
INIT_SEED_SIZE
];
unsigned
char
buf
[
INIT_SEED_SIZE
];
FILE
*
f
=
fopen
(
DROPBEAR_URANDOM_DEV
,
"w"
);
FILE
*
f
=
fopen
(
DROPBEAR_URANDOM_DEV
,
"w"
);
if
(
!
f
)
{
if
(
!
f
)
{
return
;
return
;
}
}
genrandom
(
buf
,
sizeof
(
buf
));
genrandom
(
buf
,
sizeof
(
buf
));
fwrite
(
buf
,
sizeof
(
buf
),
1
,
f
);
fwrite
(
buf
,
sizeof
(
buf
),
1
,
f
);
fclose
(
f
);
fclose
(
f
);
...
...
termcodes.c
View file @
8e68d5e2
...
@@ -107,8 +107,14 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = {
...
@@ -107,8 +107,14 @@ const struct TermCode termcodes[MAX_TERMCODE+1] = {
#else
#else
{
0
,
0
},
{
0
,
0
},
#endif
#endif
{
0
,
0
},
/* 42 */
/* IUTF8 isn't standardised in rfc4254 but is likely soon.
* Implemented by linux and darwin */
#ifdef IUTF8
{
IUTF8
,
TERMCODE_INPUT
},
#else
{
0
,
0
},
{
0
,
0
},
#endif
{
0
,
0
},
/* 43 */
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
{
0
,
0
},
...
...
Write
Preview
Supports
Markdown
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