Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
0aaf6a71
...
0aaf6a71627fdaff310296269f35e235478b01f4
authored
2003-01-28 21:41:49 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_tls_get_fd): New function.
(tls_stream_create): Install _get_fd method
1 parent
4895e88d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
auth/tls.c
auth/tls.c
View file @
0aaf6a7
...
...
@@ -366,6 +366,15 @@ _tls_strerror (stream_t stream, const char **pstr)
return
0
;
}
/* FIXME: It returns only input fd */
int
_tls_get_fd
(
stream_t
stream
,
int
*
pfd
)
{
struct
_tls_stream
*
s
=
stream_get_owner
(
stream
);
*
pfd
=
s
->
ifd
;
return
0
;
}
int
tls_stream_create
(
stream_t
*
stream
,
int
in_fd
,
int
out_fd
,
int
flags
)
{
...
...
@@ -397,6 +406,7 @@ tls_stream_create (stream_t *stream, int in_fd, int out_fd, int flags)
stream_set_flush
(
*
stream
,
_tls_flush
,
s
);
stream_set_destroy
(
*
stream
,
_tls_destroy
,
s
);
stream_set_strerror
(
*
stream
,
_tls_strerror
,
s
);
stream_set_fd
(
*
stream
,
_tls_get_fd
,
s
);
s
->
state
=
state_init
;
return
0
;
...
...
Please
register
or
sign in
to post a comment