blob: 3398c9d4d5e22e318764f186b25437d98578f68b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/license.html
*/
/*
* Test Scripts
* ============================================================================
*/
DEF_SCRIPT(simple_conn, "simple connection to server")
{
OP_SIMPLE_PAIR_CONN();
OP_WRITE_B(C, "apple");
OP_ACCEPT_CONN_WAIT(L, La, 0);
OP_ACCEPT_CONN_NONE(L);
OP_WRITE_B(La, "orange");
OP_READ_EXPECT_B(C, "orange");
}
/*
* List of Test Scripts
* ============================================================================
*/
static SCRIPT_INFO *const scripts[] = {
USE(simple_conn)
};
|