https
express server läuft jetzt mit https
This commit is contained in:
1865
express-server/node_modules/ursa-optional/src/ursaNative.cc
generated
vendored
Normal file
1865
express-server/node_modules/ursa-optional/src/ursaNative.cc
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
56
express-server/node_modules/ursa-optional/src/ursaNative.h
generated
vendored
Normal file
56
express-server/node_modules/ursa-optional/src/ursaNative.h
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
// Copyright 2012 The Obvious Corporation.
|
||||
|
||||
#ifndef URSA_NATIVE_H
|
||||
#define URSA_NATIVE_H
|
||||
|
||||
#ifndef BUILDING_NODE_EXTENSION
|
||||
#define BUILDING_NODE_EXTENSION
|
||||
#endif
|
||||
#include <node.h>
|
||||
#include <nan.h>
|
||||
#include <v8.h>
|
||||
|
||||
#include <openssl/rsa.h>
|
||||
|
||||
class RsaWrap : public node::ObjectWrap
|
||||
{
|
||||
public:
|
||||
static void InitClass(v8::Local<v8::Object> target);
|
||||
|
||||
protected:
|
||||
RsaWrap();
|
||||
~RsaWrap();
|
||||
|
||||
static NAN_METHOD(New);
|
||||
static NAN_METHOD(GeneratePrivateKey);
|
||||
static NAN_METHOD(GetExponent);
|
||||
static NAN_METHOD(GetPrivateExponent);
|
||||
static NAN_METHOD(GetModulus);
|
||||
static NAN_METHOD(GetPrivateKeyPem);
|
||||
static NAN_METHOD(GetPublicKeyPem);
|
||||
static NAN_METHOD(PrivateDecrypt);
|
||||
static NAN_METHOD(PrivateEncrypt);
|
||||
static NAN_METHOD(PublicDecrypt);
|
||||
static NAN_METHOD(PublicEncrypt);
|
||||
static NAN_METHOD(SetPrivateKeyPem);
|
||||
static NAN_METHOD(SetPublicKeyPem);
|
||||
static NAN_METHOD(Sign);
|
||||
static NAN_METHOD(Verify);
|
||||
static NAN_METHOD(CreatePrivateKeyFromComponents);
|
||||
static NAN_METHOD(CreatePublicKeyFromComponents);
|
||||
static NAN_METHOD(OpenPublicSshKey);
|
||||
static NAN_METHOD(AddPSSPadding);
|
||||
static NAN_METHOD(VerifyPSSPadding);
|
||||
|
||||
private:
|
||||
static RsaWrap *expectPrivateKey(RsaWrap *obj);
|
||||
static RsaWrap *expectSet(RsaWrap *obj);
|
||||
static RsaWrap *expectUnset(RsaWrap *obj);
|
||||
|
||||
BIGNUM *rsa_n, *rsa_e, *rsa_d;
|
||||
RSA *rsa;
|
||||
};
|
||||
|
||||
NAN_METHOD(TextToNid);
|
||||
|
||||
#endif // def URSA_NATIVE_H
|
Reference in New Issue
Block a user