|
| 1 | +#include <memory> |
| 2 | + |
| 3 | +#include "../kerberos.h" |
| 4 | +#include "../kerberos_client.h" |
| 5 | +#include "../kerberos_common.h" |
| 6 | +#include "../kerberos_server.h" |
| 7 | +#include "../kerberos_worker.h" |
| 8 | + |
| 9 | +NAN_METHOD(InitializeClient) { |
| 10 | + std::string service(*Nan::Utf8String(info[0])); |
| 11 | + v8::Local<v8::Object> options = Nan::To<v8::Object>(info[1]).ToLocalChecked(); |
| 12 | + Nan::Callback* callback = new Nan::Callback(Nan::To<v8::Function>(info[2]).ToLocalChecked()); |
| 13 | + Nan::ThrowError('`initializeClient` is not implemented yet for windows'); |
| 14 | +} |
| 15 | + |
| 16 | +NAN_METHOD(InitializeServer) { |
| 17 | + std::string service(*Nan::Utf8String(info[0])); |
| 18 | + Nan::Callback* callback = new Nan::Callback(Nan::To<v8::Function>(info[1]).ToLocalChecked()); |
| 19 | + Nan::ThrowError('`initializeServer` is not implemented yet for windows'); |
| 20 | +} |
| 21 | + |
| 22 | +NAN_METHOD(PrincipalDetails) { |
| 23 | + std::string service(*Nan::Utf8String(info[0])); |
| 24 | + std::string hostname(*Nan::Utf8String(info[1])); |
| 25 | + Nan::Callback* callback = new Nan::Callback(Nan::To<v8::Function>(info[2]).ToLocalChecked()); |
| 26 | + Nan::ThrowError('`principalDetails` is not implemented yet for windows'); |
| 27 | +} |
| 28 | + |
| 29 | +NAN_METHOD(CheckPassword) { |
| 30 | + std::string username(*Nan::Utf8String(info[0])); |
| 31 | + std::string password(*Nan::Utf8String(info[1])); |
| 32 | + std::string service(*Nan::Utf8String(info[2])); |
| 33 | + std::string defaultRealm(*Nan::Utf8String(info[3])); |
| 34 | + Nan::Callback* callback = new Nan::Callback(Nan::To<v8::Function>(info[4]).ToLocalChecked()); |
| 35 | + Nan::ThrowError('`checkPassword` is not implemented yet for windows'); |
| 36 | +} |
0 commit comments