]> git.proxmox.com Git - mirror_frr.git/blobdiff - pceplib/pcep_socket_comm.h
Merge pull request #12811 from Avineus/frr_neighlog_5884
[mirror_frr.git] / pceplib / pcep_socket_comm.h
index 797ffda86080a81037a276da7cdf38bdc81e3e46..30edee410a217d1d8d3ff6c52028e5c88b914709 100644 (file)
@@ -1,21 +1,9 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
 /*
  * This file is part of the PCEPlib, a PCEP protocol library.
  *
  * Copyright (C) 2020 Volta Networks https://voltanet.io/
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <https://www.gnu.org/licenses/>.
- *
  * Author : Brady Johnson <brady@voltanet.io>
  *
  */
@@ -91,9 +79,9 @@ typedef struct pcep_socket_comm_session_ {
        int received_bytes;
        bool close_after_write;
        void *external_socket_data; /* used for external socket infra */
-       char tcp_authentication_str[TCP_MD5SIG_MAXKEYLEN
-                                   + 1]; /* should be used with is_tcp_auth_md5
-                                            flag */
+       /* should be used with is_tcp_auth_md5 flag */
+       char tcp_authentication_str[PCEP_MD5SIG_MAXKEYLEN + 1];
+
        bool is_tcp_auth_md5; /* flag to distinguish between rfc 2385 (md5) and
                                 rfc 5925 (tcp-ao) */