Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78252030
security_buffer_descriptor.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, 10:24
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Aug 21, 10:24 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20009305
Attached To
R2664 SHRINE MedCo Fork
security_buffer_descriptor.h
View Options
#ifndef SECURITY_BUFFER_DESCRIPTOR_H
#define SECURITY_BUFFER_DESCRIPTOR_H
#include <node.h>
#include <node_object_wrap.h>
#include <v8.h>
#include <windows.h>
#include <sspi.h>
using namespace v8;
using namespace node;
class SecurityBufferDescriptor : public ObjectWrap {
public:
Persistent<Array> arrayObject;
SecBufferDesc secBufferDesc;
SecurityBufferDescriptor();
SecurityBufferDescriptor(Persistent<Array> arrayObject);
~SecurityBufferDescriptor();
// Has instance check
static inline bool HasInstance(Handle<Value> val) {
if (!val->IsObject()) return false;
Local<Object> obj = val->ToObject();
return constructor_template->HasInstance(obj);
};
char *toBuffer();
size_t bufferSize();
// Functions available from V8
static void Initialize(Handle<Object> target);
static Handle<Value> ToBuffer(const Arguments &args);
// Constructor used for creating new Long objects from C++
static Persistent<FunctionTemplate> constructor_template;
private:
static Handle<Value> New(const Arguments &args);
};
#endif
Event Timeline
Log In to Comment