diff --git a/deps/ussl-hook/loop/auth-methods.c b/deps/ussl-hook/loop/auth-methods.c index af53836a53..138d8233e6 100644 --- a/deps/ussl-hook/loop/auth-methods.c +++ b/deps/ussl-hook/loop/auth-methods.c @@ -1,3 +1,14 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ int g_ussl_client_auth_methods = USSL_AUTH_NONE; // all methods are supported by default diff --git a/deps/ussl-hook/loop/auth-methods.h b/deps/ussl-hook/loop/auth-methods.h index a47ab18e5f..f950de4b3b 100644 --- a/deps/ussl-hook/loop/auth-methods.h +++ b/deps/ussl-hook/loop/auth-methods.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_AUTH_METHODS_ #define USSL_HOOK_LOOP_AUTH_METHODS_ diff --git a/deps/ussl-hook/loop/handle-event.c b/deps/ussl-hook/loop/handle-event.c index 58267705a3..bde110cfc3 100644 --- a/deps/ussl-hook/loop/handle-event.c +++ b/deps/ussl-hook/loop/handle-event.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/ussl-hook/loop/handle-event.h b/deps/ussl-hook/loop/handle-event.h index cc56f3b6d8..fa65158c7a 100644 --- a/deps/ussl-hook/loop/handle-event.h +++ b/deps/ussl-hook/loop/handle-event.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_HANDLE_EVENT_ #define USSL_HOOK_LOOP_HANDLE_EVENT_ diff --git a/deps/ussl-hook/loop/pipefd.c b/deps/ussl-hook/loop/pipefd.c index 0c37c986b4..58252c7838 100644 --- a/deps/ussl-hook/loop/pipefd.c +++ b/deps/ussl-hook/loop/pipefd.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static int pipefd_handle_event(pipefd_t *s) { int ret = 0; diff --git a/deps/ussl-hook/loop/pipefd.h b/deps/ussl-hook/loop/pipefd.h index 9e5bb7c780..df9aea4279 100644 --- a/deps/ussl-hook/loop/pipefd.h +++ b/deps/ussl-hook/loop/pipefd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_PIPEFD_ #define USSL_HOOK_LOOP_PIPEFD_ diff --git a/deps/ussl-hook/loop/ussl_eloop.c b/deps/ussl-hook/loop/ussl_eloop.c index 41d273b5ab..54e47407eb 100644 --- a/deps/ussl-hook/loop/ussl_eloop.c +++ b/deps/ussl-hook/loop/ussl_eloop.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + int64_t ob_update_loop_ts(); int ussl_is_stop() diff --git a/deps/ussl-hook/loop/ussl_eloop.h b/deps/ussl-hook/loop/ussl_eloop.h index 94d92d8383..8601622d4e 100644 --- a/deps/ussl-hook/loop/ussl_eloop.h +++ b/deps/ussl-hook/loop/ussl_eloop.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_ELOOP_ #define USSL_HOOK_LOOP_ELOOP_ diff --git a/deps/ussl-hook/loop/ussl_factory.c b/deps/ussl-hook/loop/ussl_factory.c index a46f00277d..a6cef29e44 100644 --- a/deps/ussl-hook/loop/ussl_factory.c +++ b/deps/ussl-hook/loop/ussl_factory.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + static clientfd_sk_t *clientfd_sk_new(ussl_sf_t *sf) { clientfd_sk_t *s = NULL; diff --git a/deps/ussl-hook/loop/ussl_factory.h b/deps/ussl-hook/loop/ussl_factory.h index ae186c53ca..120443ffe7 100644 --- a/deps/ussl-hook/loop/ussl_factory.h +++ b/deps/ussl-hook/loop/ussl_factory.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_FACTORY_ #define USSL_HOOK_LOOP_FACTORY_ diff --git a/deps/ussl-hook/loop/ussl_ihash_map.c b/deps/ussl-hook/loop/ussl_ihash_map.c index ed3d3ec1c3..3cb7c3244e 100644 --- a/deps/ussl-hook/loop/ussl_ihash_map.c +++ b/deps/ussl-hook/loop/ussl_ihash_map.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #define __ussl_fhmix(h) ({ \ (h) ^= (h) >> 23; \ (h) *= 0x2127599bf4325c37ULL; \ diff --git a/deps/ussl-hook/loop/ussl_ihash_map.h b/deps/ussl-hook/loop/ussl_ihash_map.h index 2b31ebf2d4..5d149c64d6 100644 --- a/deps/ussl-hook/loop/ussl_ihash_map.h +++ b/deps/ussl-hook/loop/ussl_ihash_map.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct ussl_hash_t { int64_t capacity; ussl_link_t table[0]; diff --git a/deps/ussl-hook/loop/ussl_link.c b/deps/ussl-hook/loop/ussl_link.c index 2916cec269..e53294da5a 100644 --- a/deps/ussl-hook/loop/ussl_link.c +++ b/deps/ussl-hook/loop/ussl_link.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline void ussl_link_init(ussl_link_t* n); extern inline int ussl_link_is_empty(ussl_link_t* n); extern inline ussl_link_t* ussl_link_insert(ussl_link_t* prev, ussl_link_t* t); diff --git a/deps/ussl-hook/loop/ussl_link.h b/deps/ussl-hook/loop/ussl_link.h index 644afd0aa7..0cef842e73 100644 --- a/deps/ussl-hook/loop/ussl_link.h +++ b/deps/ussl-hook/loop/ussl_link.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + typedef struct ussl_link_t { struct ussl_link_t* next; } ussl_link_t; diff --git a/deps/ussl-hook/loop/ussl_listenfd.c b/deps/ussl-hook/loop/ussl_listenfd.c index 0524fc766c..6381ee5ece 100644 --- a/deps/ussl-hook/loop/ussl_listenfd.c +++ b/deps/ussl-hook/loop/ussl_listenfd.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ussl_listenfd.h" #include "../ussl-deps.h" #include diff --git a/deps/ussl-hook/loop/ussl_listenfd.h b/deps/ussl-hook/loop/ussl_listenfd.h index 567a4977d0..4363fe038c 100644 --- a/deps/ussl-hook/loop/ussl_listenfd.h +++ b/deps/ussl-hook/loop/ussl_listenfd.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_LISTENFD_ #define USSL_HOOK_LOOP_LISTENFD_ diff --git a/deps/ussl-hook/loop/ussl_sock.c b/deps/ussl-hook/loop/ussl_sock.c index f31c2b344e..a7ead56d63 100644 --- a/deps/ussl-hook/loop/ussl_sock.c +++ b/deps/ussl-hook/loop/ussl_sock.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + extern inline void ussl_skset(ussl_sock_t *s, uint32_t m); extern inline void ussl_skclear(ussl_sock_t *s, uint32_t m); extern inline int ussl_sktest(ussl_sock_t *s, uint32_t m); diff --git a/deps/ussl-hook/loop/ussl_sock.h b/deps/ussl-hook/loop/ussl_sock.h index 9a7bd20a55..51585abc47 100644 --- a/deps/ussl-hook/loop/ussl_sock.h +++ b/deps/ussl-hook/loop/ussl_sock.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_SOCK_ #define USSL_HOOK_LOOP_SOCK_ diff --git a/deps/ussl-hook/message.c b/deps/ussl-hook/message.c index e803ba5ff8..8a34356763 100644 --- a/deps/ussl-hook/message.c +++ b/deps/ussl-hook/message.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + # define USSL_DEFAULT_VERSION 1 int send_negotiation_message(int fd, const char *b, int sz) diff --git a/deps/ussl-hook/message.h b/deps/ussl-hook/message.h index b3b163496a..8e7fe350b4 100644 --- a/deps/ussl-hook/message.h +++ b/deps/ussl-hook/message.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_MESSAGE_H #define USSL_HOOK_MESSAGE_H diff --git a/deps/ussl-hook/ssl/ssl_config.c b/deps/ussl-hook/ssl/ssl_config.c index f53b92854f..a1631e88e5 100644 --- a/deps/ussl-hook/ssl/ssl_config.c +++ b/deps/ussl-hook/ssl/ssl_config.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/ussl-hook/ssl/ssl_config.h b/deps/ussl-hook/ssl/ssl_config.h index 6d1e21e5cf..63292abb8f 100644 --- a/deps/ussl-hook/ssl/ssl_config.h +++ b/deps/ussl-hook/ssl/ssl_config.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #pragma once int ssl_config_ctx_id = -1; diff --git a/deps/ussl-hook/ussl-deps.c b/deps/ussl-hook/ussl-deps.c index e662705d14..e887ca6cb0 100644 --- a/deps/ussl-hook/ussl-deps.c +++ b/deps/ussl-hook/ussl-deps.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ussl-deps.h" #include #include diff --git a/deps/ussl-hook/ussl-deps.h b/deps/ussl-hook/ussl-deps.h index 77c8e64479..effb57e8a9 100644 --- a/deps/ussl-hook/ussl-deps.h +++ b/deps/ussl-hook/ussl-deps.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_USSL_DEPS_ #define USSL_HOOK_USSL_DEPS_ diff --git a/deps/ussl-hook/ussl-hook.c b/deps/ussl-hook/ussl-hook.c index 5e32bbc442..c651c0b90f 100644 --- a/deps/ussl-hook/ussl-hook.c +++ b/deps/ussl-hook/ussl-hook.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include #include #include diff --git a/deps/ussl-hook/ussl-hook.h b/deps/ussl-hook/ussl-hook.h index 0b3aba9b3b..fae8bbe0ff 100644 --- a/deps/ussl-hook/ussl-hook.h +++ b/deps/ussl-hook/ussl-hook.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_USSL_HOOK_ #define USSL_HOOK_USSL_HOOK_ diff --git a/deps/ussl-hook/ussl-loop.c b/deps/ussl-hook/ussl-loop.c index a43fc5f40b..ae6b5cac5b 100644 --- a/deps/ussl-hook/ussl-loop.c +++ b/deps/ussl-hook/ussl-loop.c @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #include "ussl-loop.h" #include #include diff --git a/deps/ussl-hook/ussl-loop.h b/deps/ussl-hook/ussl-loop.h index b0324c40e8..3ccc0bd526 100644 --- a/deps/ussl-hook/ussl-loop.h +++ b/deps/ussl-hook/ussl-loop.h @@ -1,3 +1,15 @@ +/** + * Copyright (c) 2021 OceanBase + * OceanBase CE is licensed under Mulan PubL v2. + * You can use this software according to the terms and conditions of the Mulan PubL v2. + * You may obtain a copy of Mulan PubL v2 at: + * http://license.coscl.org.cn/MulanPubL-2.0 + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, + * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, + * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. + * See the Mulan PubL v2 for more details. + */ + #ifndef USSL_HOOK_LOOP_USSL_LOOP_ #define USSL_HOOK_LOOP_USSL_LOOP_