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
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var assert = require('assert');
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
return callback(new Error('Not implemented'));
|
|
|
|
|
}
|
|
|
|
|
|