diff --git a/README.md b/README.md index d4e240c..d3f82c2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # ACMECert PHP client library for [Let's Encrypt](https://letsencrypt.org/) and other [ACME v2 - RFC 8555](https://tools.ietf.org/html/rfc8555) compatible Certificate Authorities. -Version: 3.2.0 +Version: 3.2.1 ## Description @@ -467,7 +467,7 @@ public array ACMECert::register ( bool $termsOfServiceAgreed = FALSE [, mixed $c Associate the loaded account key with the CA account using External Account Binding (EAB) credentials and optionally specify contacts. ```php -public array ACMECert::registerEAB ( bool $termsOfServiceAgreed = FALSE, string $eab_kid, string $eab_hmac [, mixed $contacts = array() ] ) +public array ACMECert::registerEAB ( bool $termsOfServiceAgreed, string $eab_kid, string $eab_hmac [, mixed $contacts = array() ] ) ``` ###### Parameters > **`termsOfServiceAgreed`** diff --git a/composer.json b/composer.json index 574125b..655f49e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "skoerfgen/acmecert", - "version": "3.2.0", + "version": "3.2.1", "description": "PHP client library for Let's Encrypt and other ACME v2 - RFC 8555 compatible Certificate Authorities", "license": "MIT", "authors": [ diff --git a/src/ACMECert.php b/src/ACMECert.php index 209fe56..b179b49 100644 --- a/src/ACMECert.php +++ b/src/ACMECert.php @@ -40,7 +40,7 @@ public function register($termsOfServiceAgreed=false,$contacts=array()){ return $this->_register($termsOfServiceAgreed,$contacts); } - public function registerEAB($termsOfServiceAgreed=false,$eab_kid,$eab_hmac,$contacts=array()){ + public function registerEAB($termsOfServiceAgreed,$eab_kid,$eab_hmac,$contacts=array()){ if (!$this->resources) $this->readDirectory(); $protected=array( diff --git a/src/ACMEv2.php b/src/ACMEv2.php index 5d927e4..05bb91a 100644 --- a/src/ACMEv2.php +++ b/src/ACMEv2.php @@ -286,7 +286,7 @@ private function http_request($url,$data=null){ } $method=$data===false?'HEAD':($data===null?'GET':'POST'); - $user_agent='ACMECert v3.2.0 (+https://github.com/skoerfgen/ACMECert)'; + $user_agent='ACMECert v3.2.1 (+https://github.com/skoerfgen/ACMECert)'; $header=($data===null||$data===false)?array():array('Content-Type: application/jose+json'); if ($this->ch) { $headers=array();