25 lines
704 B
JavaScript
25 lines
704 B
JavaScript
'use strict';
|
|
|
|
// -------------------------------------------
|
|
// This file just describes the interface
|
|
//
|
|
// New backends can start from here
|
|
// -------------------------------------------
|
|
|
|
exports = module.exports = {
|
|
getCertificate: getCertificate
|
|
};
|
|
|
|
var assert = require('assert'),
|
|
BoxError = require('../boxerror.js');
|
|
|
|
function getCertificate(hostname, domain, options, callback) {
|
|
assert.strictEqual(typeof hostname, 'string');
|
|
assert.strictEqual(typeof domain, 'string');
|
|
assert.strictEqual(typeof options, 'object');
|
|
assert.strictEqual(typeof callback, 'function');
|
|
|
|
return callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'getCertificate is not implemented'));
|
|
}
|
|
|