Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78225147
kerberos_context.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 19, 06:27
Size
1 KB
Mime Type
text/x-c++
Expires
Wed, Aug 21, 06:27 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20005683
Attached To
R2664 SHRINE MedCo Fork
kerberos_context.h
View Options
#ifndef KERBEROS_CONTEXT_H
#define KERBEROS_CONTEXT_H
#include <node.h>
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
#include <gssapi/gssapi_krb5.h>
#include <node_object_wrap.h>
#include <v8.h>
extern "C" {
#include "kerberosgss.h"
}
using namespace v8;
using namespace node;
class KerberosContext : public ObjectWrap {
public:
KerberosContext();
~KerberosContext();
static inline bool HasInstance(Handle<Value> val) {
if (!val->IsObject()) return false;
Local<Object> obj = val->ToObject();
return constructor_template->HasInstance(obj);
};
// Constructor used for creating new Kerberos objects from C++
static Persistent<FunctionTemplate> constructor_template;
// Initialize function for the object
static void Initialize(Handle<Object> target);
// Public constructor
static KerberosContext* New();
// Handle to the kerberos context
gss_client_state *state;
private:
static Handle<Value> New(const Arguments &args);
static Handle<Value> ResponseGetter(Local<String> property, const AccessorInfo& info);
};
#endif
Event Timeline
Log In to Comment