v3.0.7: private notify function
This commit is contained in:
parent
86068fe015
commit
333605d9b8
11
acme.js
11
acme.js
|
@ -474,7 +474,7 @@ ACME._dryRun = function(me, realOptions, zonenames) {
|
||||||
var selected = [];
|
var selected = [];
|
||||||
noopts.order._claims = claims.slice(0);
|
noopts.order._claims = claims.slice(0);
|
||||||
noopts.notify = function(ev, params) {
|
noopts.notify = function(ev, params) {
|
||||||
if ('challenge_select' === ev) {
|
if ('_challenge_select' === ev) {
|
||||||
selected.push(params.challenge);
|
selected.push(params.challenge);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -893,6 +893,15 @@ ACME._setChallenges = function(me, options, order) {
|
||||||
placed.push(selected);
|
placed.push(selected);
|
||||||
ACME._notify(me, options, 'challenge_select', {
|
ACME._notify(me, options, 'challenge_select', {
|
||||||
// API-locked
|
// API-locked
|
||||||
|
altname: ACME._untame(
|
||||||
|
claim.identifier.value,
|
||||||
|
claim.wildcard
|
||||||
|
),
|
||||||
|
type: selected.type,
|
||||||
|
dnsHost: selected.dnsHost,
|
||||||
|
keyAuthorization: selected.keyAuthorization
|
||||||
|
});
|
||||||
|
ACME._notify(me, options, '_challenge_select', {
|
||||||
altname: ACME._untame(
|
altname: ACME._untame(
|
||||||
claim.identifier.value,
|
claim.identifier.value,
|
||||||
claim.wildcard
|
claim.wildcard
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/acme",
|
"name": "@root/acme",
|
||||||
"version": "3.0.6",
|
"version": "3.0.7",
|
||||||
"description": "Free SSL certificates for Node.js and Browsers. Issued via Let's Encrypt",
|
"description": "Free SSL certificates for Node.js and Browsers. Issued via Let's Encrypt",
|
||||||
"homepage": "https://rootprojects.org/acme/",
|
"homepage": "https://rootprojects.org/acme/",
|
||||||
"main": "acme.js",
|
"main": "acme.js",
|
||||||
|
|
Loading…
Reference in New Issue