Skip to content

Commit 754807a

Browse files
committed
Release 2.5.0
Change-Id: Iaf2358093b8330f1199d4619e2475eec8f61fce6 Reviewed-on: http://review.couchbase.org/96543 Tested-by: Build Bot <[email protected]> Reviewed-by: Sergey Avseyev <[email protected]>
1 parent a6032e7 commit 754807a

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

api/couchbase.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ public function manager($username = null, $password = null) {}
335335
* @see \Couchbase\Authenticator
336336
* @see \Couchbase\ClassicAuthenticator
337337
* @see \Couchbase\PasswordAuthenticator
338+
* @see \Couchbase\CertAuthenticator
338339
*/
339340
public function authenticate($authenticator) {}
340341

@@ -1432,6 +1433,7 @@ public function dropN1qlIndex($name, $ignoreIfNotExist = false) {}
14321433
* @see \Couchbase\Cluster::authenticate()
14331434
* @see \Couchbase\ClassicAuthenticator
14341435
* @see \Couchbase\PasswordAuthenticator
1436+
* @see \Couchbase\CertAuthenticator
14351437
*/
14361438
interface Authenticator {}
14371439

@@ -1492,6 +1494,18 @@ public function username($username) {}
14921494
public function password($password) {}
14931495
}
14941496

1497+
/**
1498+
* Authenticator for Client Certificate authentication feature of Couchbase Server 5+.
1499+
*
1500+
* This authenticator does not have any attributes, but ensures that
1501+
* "certpath" and "keypath" options specified in the connection string
1502+
*
1503+
* @see \Couchbase\Cluster::authenticate()
1504+
* @see \Couchbase\Authenticator
1505+
*/
1506+
class CertAuthenticator implements Authenticator {
1507+
}
1508+
14951509
/**
14961510
* An object which contains meta information of the document needed to enforce query consistency.
14971511
*/

package.xml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
<active>yes</active>
1919
</lead>
2020

21-
<date>2018-06-07</date>
21+
<date>2018-07-05</date>
2222
<version>
23-
<release>2.4.7</release>
23+
<release>2.5.0</release>
2424
<api>2.3.0</api>
2525
</version>
2626
<stability>
@@ -30,9 +30,12 @@
3030
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache V2
3131
</license>
3232
<notes>
33-
* PCBC-534: Add profile N1QL query parameter.
34-
* PCBC-538: do not dereference NULL values after encoding.
35-
* PCBC-549, PCBC-541: Update crypto interfaces.
33+
* PCBC-551: Do not complain about missing igbinary on start
34+
* PCBC-552: Pass logger to lcb_create to catch all log messages
35+
* PCBC-553: Check if crypto provider implements IV and signatures
36+
* PCBC-554: Fix search query descending order to use "desc"
37+
* PCBC-544: Implement CertAuthenticator for extra checks
38+
* Fixes for PHP 7.3
3639
</notes>
3740
<contents>
3841
<dir name="/">
@@ -75,6 +78,7 @@
7578
<file role="src" name="src/couchbase/analytics_query.c" />
7679
<file role="src" name="src/couchbase/authenticator.c" />
7780
<file role="src" name="src/couchbase/crypto.c" />
81+
<file role="src" name="src/couchbase/cert_authenticator.c" />
7882
<file role="src" name="src/couchbase/classic_authenticator.c" />
7983
<file role="src" name="src/couchbase/password_authenticator.c" />
8084
<file role="src" name="src/couchbase/base36.c" />
@@ -182,6 +186,24 @@
182186
<providesextension>couchbase</providesextension>
183187
<extsrcrelease/>
184188
<changelog>
189+
<release>
190+
<date>2018-06-07</date>
191+
<version>
192+
<release>2.4.7</release>
193+
<api>2.3.0</api>
194+
</version>
195+
<stability>
196+
<release>stable</release>
197+
<api>stable</api>
198+
</stability>
199+
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache V2
200+
</license>
201+
<notes>
202+
* PCBC-534: Add profile N1QL query parameter.
203+
* PCBC-538: do not dereference NULL values after encoding.
204+
* PCBC-549, PCBC-541: Update crypto interfaces.
205+
</notes>
206+
</release>
185207
<release>
186208
<date>2018-04-13</date>
187209
<version>

php_couchbase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef PHP_COUCHBASE_H_
1818
#define PHP_COUCHBASE_H_
1919

20-
#define PHP_COUCHBASE_VERSION "2.4.7"
20+
#define PHP_COUCHBASE_VERSION "2.5.0"
2121
#define PHP_COUCHBASE_EXTNAME "couchbase"
2222

2323
extern zend_module_entry couchbase_module_entry;

src/couchbase/bucket.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,10 +1472,6 @@ static int is_cert_auth_good(pcbc_cluster_t *cluster, const char *password TSRML
14721472
pcbc_log(LOGARGS_(DEBUG), "mixed-auth: keypath in connection string requires CertAuthenticator");
14731473
return 0;
14741474
}
1475-
if (strstr(cluster->connstr, "certpath") != NULL) {
1476-
pcbc_log(LOGARGS_(DEBUG), "mixed-auth: certpath in connection string requires CertAuthenticator");
1477-
return 0;
1478-
}
14791475
}
14801476
return 1;
14811477
}

0 commit comments

Comments
 (0)