Skip to content

Instantly share code, notes, and snippets.

View microo8's full-sized avatar

Vlαdo Magyar microo8

View GitHub Profile
@microo8
microo8 / gssapi-client.c
Created June 6, 2016 07:51 — forked from cbusbey/gssapi-client.c
GSSAPI "house"
// The GSSAPI security mechanism
#include <czmq.h>
#include <zmq.h>
void zsocket_set_gssapi_client(void * zocket)
{
int rc = zmq_setsockopt (zocket, ZMQ_GSSAPI_SERVICE_PRINCIPAL, "host", 4);
assert (rc == 0 || zmq_errno () == ETERM);