Skip to content

Commit 3e622ac

Browse files
author
Ashok Argent-Katwala
committed
Add documenting comment for the consequences of disabling SSL verification.
1 parent 462644f commit 3e622ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/FreshBooksRequest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ public static function init($domain, $token)
7070
self::$_disable_ssl_verification = false;
7171
}
7272

73+
/*
74+
* Turn off SSL peer verification.
75+
*
76+
* You may need to do this if your curl installation does not have
77+
* the proper certificate authority information.
78+
*
79+
* If possible, fix your curl configuration instead as with this
80+
* option set, intermediaries will be able to pretend to be
81+
* FreshBooks.
82+
*
83+
* @return null
84+
*/
7385
public static function disableSSLVerification()
7486
{
7587
self::$_disable_ssl_verification = true;

0 commit comments

Comments
 (0)