2016-10-07 13:24:12 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------
|
|
|
|
|
// This file just describes the interface
|
|
|
|
|
//
|
|
|
|
|
// New backends can start from here
|
|
|
|
|
// -------------------------------------------
|
|
|
|
|
|
|
|
|
|
exports = module.exports = {
|
|
|
|
|
getCertificate: getCertificate
|
|
|
|
|
};
|
|
|
|
|
|
2019-12-04 10:29:06 -08:00
|
|
|
var assert = require('assert'),
|
|
|
|
|
BoxError = require('../boxerror.js');
|
2016-10-07 13:24:12 -07:00
|
|
|
|
2018-09-10 20:41:38 -07:00
|
|
|
function getCertificate(hostname, domain, options, callback) {
|
|
|
|
|
assert.strictEqual(typeof hostname, 'string');
|
2016-12-05 16:07:06 +01:00
|
|
|
assert.strictEqual(typeof domain, 'string');
|
|
|
|
|
assert.strictEqual(typeof options, 'object');
|
|
|
|
|
assert.strictEqual(typeof callback, 'function');
|
2016-10-07 13:24:12 -07:00
|
|
|
|
2019-12-04 10:29:06 -08:00
|
|
|
return callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'getCertificate is not implemented'));
|
2016-10-07 13:24:12 -07:00
|
|
|
}
|
|
|
|
|
|