source: src/router/php7/ext/ldap/tests/ldap_set_option_ciphersuite_basic.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 488 bytes
Line 
1--TEST--
2ldap_set_option() - Basic test for TLS cipher suite ldap option
3--CREDITS--
4Chad Sikorra <Chad.Sikorra@gmail.com>
5--SKIPIF--
6<?php require_once('skipif.inc'); ?>
7--FILE--
8<?php
9require "connect.inc";
10$link = ldap_connect($host, $port);
11
12$result = ldap_set_option($link, LDAP_OPT_X_TLS_CIPHER_SUITE, '3DES');
13var_dump($result);
14
15ldap_get_option($link, LDAP_OPT_X_TLS_CIPHER_SUITE, $optionval);
16var_dump($optionval);
17?>
18===DONE===
19--EXPECT--
20bool(true)
21string(4) "3DES"
22===DONE===
Note: See TracBrowser for help on using the repository browser.