Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
7abf2564
Commit
7abf2564
authored
Apr 25, 2014
by
Chris Laws
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for gssapi build issue
parent
09647fa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
gssapi_client.cpp
src/gssapi_client.cpp
+10
-6
No files found.
src/gssapi_client.cpp
View file @
7abf2564
...
...
@@ -18,6 +18,9 @@
*/
#include "platform.hpp"
#ifdef HAVE_LIBGSSAPI_KRB5
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#endif
...
...
@@ -71,7 +74,7 @@ int zmq::gssapi_client_t::next_handshake_command (msg_t *msg_)
{
if
(
state
==
send_ready
)
{
int
rc
=
produce_ready
(
msg_
);
if
(
rc
==
0
)
if
(
rc
==
0
)
state
=
connected
;
return
rc
;
...
...
@@ -84,7 +87,7 @@ int zmq::gssapi_client_t::next_handshake_command (msg_t *msg_)
if
(
initialize_context
()
<
0
)
return
-
1
;
if
(
produce_next_token
(
msg_
)
<
0
)
return
-
1
;
...
...
@@ -97,7 +100,7 @@ int zmq::gssapi_client_t::next_handshake_command (msg_t *msg_)
}
else
state
=
recv_next_token
;
return
0
;
}
...
...
@@ -126,7 +129,7 @@ int zmq::gssapi_client_t::process_handshake_command (msg_t *msg_)
errno_assert
(
msg_
->
close
()
==
0
);
errno_assert
(
msg_
->
init
()
==
0
);
return
0
;
}
...
...
@@ -163,7 +166,7 @@ int zmq::gssapi_client_t::initialize_context ()
send_tok
.
length
=
strlen
(
service_name
);
OM_uint32
maj
=
gss_import_name
(
&
min_stat
,
&
send_tok
,
gss_nt_service_name
,
&
target_name
);
if
(
maj
!=
GSS_S_COMPLETE
)
return
-
1
;
}
...
...
@@ -175,7 +178,7 @@ int zmq::gssapi_client_t::initialize_context ()
if
(
token_ptr
!=
GSS_C_NO_BUFFER
)
free
(
recv_tok
.
value
);
return
0
;
}
...
...
@@ -213,3 +216,4 @@ int zmq::gssapi_client_t::process_next_token (msg_t *msg_)
return
0
;
}
#endif
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