-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
executable file
·28 lines (22 loc) · 1.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* This program and the accompanying materials are made available under the terms of the *
* Eclipse Public License v2.0 which accompanies this distribution, and is available at *
* https://www.eclipse.org/legal/epl-v20.html *
* *
* SPDX-License-Identifier: EPL-2.0 *
* *
* Copyright Contributors to the Zowe Project. *
*/
var binding = require('node-gyp-build')(__dirname);
module.exports.getDerEncodedData = getDerEncodedData;
module.exports.getPemEncodedData = getPemEncodedData;
module.exports.listKeyring = listKeyring;
function listKeyring(userid, keyring){
return binding.listKeyring(userid, keyring);
}
function getDerEncodedData(userid, keyring, label) {
return binding.getData(userid, keyring, label, "der");
}
function getPemEncodedData(userid, keyring, label) {
return binding.getData(userid, keyring, label, "pem");
}