Skip to content

Instantly share code, notes, and snippets.

View cbusbey's full-sized avatar
💅

Chris Busbey cbusbey

💅
View GitHub Profile
@cbusbey
cbusbey / gssapi-client.c
Last active July 22, 2018 19:46
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);