diff --git a/LICENSE.txt b/LICENSE.txt index 82c3173..bc2e49e 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2024, Perforce Software, Inc. All rights reserved. +Copyright (c) 2021, Perforce Software, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -26,16 +26,13 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------------------- - ------------------------ - The following are the license statements for code used in this program. P4/P4API License ----------------------- -Copyright (c) 1995-2024, Perforce Software, Inc. +Copyright (c) 1995-2021, Perforce Software, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -63,189 +60,128 @@ POSSIBILITY OF SUCH DAMAGE. OpenSSL: ----------------------- -Copyright (c) 1998-2022 The OpenSSL Project -Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson -All rights reserved. + This product includes cryptographic software written by Eric Young + (eay@cryptsoft.com). + This product includes software written by Tim Hudson + (tjh@cryptsoft.com). OpenSSL License ----------------------- - Apache License - Version 2.0, January 2004 - https://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS + * ==================================================================== + * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit. (http://www.openssl.org/) + * + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be + * used to endorse or promote products derived from this software + * without prior written permission. For written permission, please + * contact openssl-core@openssl.org. + * + * 5. Products derived from this software may not be called "OpenSSL + * nor may "OpenSSL" appear in their names without prior written + * permission of the OpenSSL Project. + * + * 6. Redistributions of any form whatsoever must retain the following + * acknowledgment: + * "This product includes software developed by the OpenSSL Project + * for use in the OpenSSL Toolkit (http://www.openssl.org/) + * + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * ==================================================================== + * + * This product includes cryptographic software written by Eric Young + * (eay@cryptsoft.com). This product includes software written by Tim + * Hudson (tjh@cryptsoft.com). + * + * + +Original SSLeay License +----------------------- + + * Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + * All rights reserved. + * + * This package is an SSL implementation written + * by Eric Young (eay@cryptsoft.com). + * The implementation was written so as to conform with Netscapes SSL. + * + * This library is free for commercial and non-commercial use as long as + * the following conditions are adhered to. The following conditions + * apply to all code found in this distribution, be it the RC4, RSA, + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + * included with this distribution is covered by the same copyright terms + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + * Copyright remains Eric Young's, and as such any Copyright notices in + * the code are not to be removed. + * If this package is used in a product, Eric Young should be given + * attribution as the author of the parts of the library used. + * This can be in the form of a textual message at program startup or + * in documentation (online or textual) provided with the package. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this + * software must display the following acknowledgement: + * "This product includes cryptographic software written by + * Eric Young (eay@cryptsoft.com)" + * The word 'cryptographic' can be left out if the routines from the + * library being used are not cryptographic related :-) . + * 4. If you include any Windows specific code (or a derivative thereof) + * from the apps directory (application code) you must include an + * acknowledgement: "This product includes software written by Tim + * Hudson (tjh@cryptsoft.com)" + * + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN + * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The licence and distribution terms for any publicly available version + * or derivative of this code cannot be changed. i.e. this code cannot + * simply be copied and put under another distribution licence + * [including the GNU Public Licence.] + * sol2 License @@ -517,7 +453,6 @@ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - optional-lite and any-lite Martin Moene ----------------------- @@ -547,28 +482,3 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -TinyXML-2 ------------------------ - -Copyright (c) 2019-present, Lee Thomason and contributors. - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any -damages arising from the use of this software. - -Permission is granted to anyone to use this software for any -purpose, including commercial applications, and to alter it and -redistribute it freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must -not claim that you wrote the original software. If you use this -software in a product, an acknowledgment in the product documentation -would be appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and -must not be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source -distribution. - - diff --git a/Makefile.PL b/Makefile.PL index 91ebe4b..9c0d434 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -41,7 +41,7 @@ use File::Copy; use English; # --- Supported API version --------------------------------------------------- -our $TARGET_API_VERSION = "2023.2"; +our $TARGET_API_VERSION = "2021.1"; # --- GLOBALS ----------------------------------------------------------------- our $ssl_path = undef; ## SSL path string diff --git a/RELNOTES.txt b/RELNOTES.txt index 4b6eb3a..600df6a 100644 --- a/RELNOTES.txt +++ b/RELNOTES.txt @@ -1,7 +1,7 @@ Release Notes for P4Perl, Perforce's script API for Perl - Version 2023.2 + Version 2021.1 Introduction @@ -25,7 +25,7 @@ Installing P4Perl Windows users can download an installer containing pre-built packages for P4Perl from the Perforce FTP site at - ftp://ftp.perforce.com/perforce for this release for Strawberry Perl + ftp://ftp.perforce.com/perforce for version 2021.1 for Strawberry Perl 5.32. Users on other platforms (including ActiveState Perl) must build from source, as detailed below. @@ -144,21 +144,21 @@ Compatibility Statements Server Compatibility - This release of P4Perl officially supports Helix Core Server 2023.2. + P4Perl 2021.1 officially supports Helix Core Server 2021.1. API Compatibility - This release of P4Perl is built against the 2023.2 (2023.2/2519561) - Perforce API. Older releases of the Perforce API may work but are no - longer supported. + The 2021.1 release of P4Perl supports the 2021.1 Perforce API. + Older releases of the Perforce API may work but are no longer + supported. Perl Compatibility - While Perl is usually backward compatible, we have tested this release of - P4Perl to support building from source with Perl versions 5.26, 5.30 and - 5.34 + The 2021.1 release of P4Perl is supported building from source with + Perl 5.32 and versions back to 5.14 + The P4Perl 32-bit Windows installer requires Perl 5.32 32-bit. The P4Perl 64-bit Windows installer requires Perl 5.32 64-bit. OpenSSL Compatibility @@ -170,15 +170,18 @@ Compatibility Statements "SSL library must be at least version 1.0.1." - This release of P4Perl is supported with OpenSSL 1.0.2, 1.1.1 and 3.0.8. + The 2021.1 release of P4Perl is supported with + OpenSSL 1.0.2 and 1.1.1. Platform Compatibility While P4Perl is generally portable, this release is certified only on the following platforms: - Linux kernel 2.6+ (glibc 2.12+) for Intel(x86_64) - Windows 10 for Intel(x64) + Linux kernel 2.6+ (glibc 2.12+) for Intel(x86, x86_64) + Windows 10 for Intel(x86, x64) + Windows 2016 for Intel(x64) + Windows 2019 for Intel(x64) Compiler Compatibility @@ -194,7 +197,7 @@ Compatibility Statements Compatibility with Previous Releases - This release of P4Perl is backwards-compatible with all previous releases + P4Perl 2021.1 is backwards-compatible with all previous releases from Perforce Software. Known Limitations @@ -205,9 +208,6 @@ Compatibility Statements script APIs (P4Perl, P4Ruby, etc.) should ensure that a separate connection is used for each thread or that only one thread may use a shared connection at a time. - - P4Perl does not support the P4VFS sync functionality due to compiler - inconsistencies with the P4API builds Deleted Methods --------------- @@ -294,62 +294,6 @@ Key to symbols used in change notes below. -------------------------------------------------------------------------- -New functionality in 2023.2 (2023.2/2548066) (2024/01/26) - - #2545342 (Job #119080) * ** *** - This release of P4Perl supports the 2023.2 Perforce API (2023.2/2519561) - --------------------------------------------------------------------------- - -New functionality in 2023.1 Patch 1 (2023.1/2541326) (2024/01/12) - - (Job #118833) * ** - This release is built against P4API (2023.1/2513900), - to address possible vulnerability: CVE-2023-5759. - --------------------------------------------------------------------------- - -New functionality in 2023.1 (2023.1/2468503) (2023/07/26) - - #2460330, #2460406 (Job #116146) * ** *** - This release of P4Perl supports the 2023.1 Perforce API (2023.1/2442900) - --------------------------------------------------------------------------- - -New functionality in 2022.2 Patch 1 (2022.2/2541315) (2024/01/12) - - (Job #118833) * ** - This release is built against P4API (2022.2/2531894), - to address possible vulnerability: CVE-2023-5759. - --------------------------------------------------------------------------- - -New functionality in 2022.2 - - #2402303 (Job #113794, #113795) * ** *** - This release of P4Perl supports the 2022.2 Perforce API which includes - OpenSSL 3 support - --------------------------------------------------------------------------- - -New functionality in 2021.1 Patch 2 - - Important security note - This version addresses vulnerabilities in OpenSSL (CVE-2023-0286, - CVE-2023-0215, CVE-2022-4450, CVE-2022-4304) by linking in version - 1.1.1t of the library. - --------------------------------------------------------------------------- - -New functionality in 2021.1 Patch 1 - - (Job #109914 ) * *** - Windows and Mac builds have updated version of OpenSSL(1.1.1n), - to address possible vulnerability: CVE-2022-0778. - Linux builds are not affected. - --------------------------------------------------------------------------- - New functionality in 2021.1 #2181291 (Job #107857) * ** *** diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..fc24e7a --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-hacker \ No newline at end of file diff --git a/lib/specmgr.cpp b/lib/specmgr.cpp index 0643bee..e2726d8 100644 --- a/lib/specmgr.cpp +++ b/lib/specmgr.cpp @@ -47,7 +47,7 @@ struct defaultspec { const char *type; const char *spec; } speclist[] = { - + { "branch", "Branch;code:301;rq;ro;fmt:L;len:32;;" @@ -88,8 +88,7 @@ struct defaultspec { "AltRoots;code:308;type:llist;len:64;;" "Options;code:309;type:line;len:64;val:" "noallwrite/allwrite,noclobber/clobber,nocompress/compress," - "unlocked/locked,nomodtime/modtime,normdir/rmdir," - "noaltsync/altsync;;" + "unlocked/locked,nomodtime/modtime,normdir/rmdir;;" "SubmitOptions;code:313;type:select;fmt:L;len:25;val:" "submitunchanged/submitunchanged+reopen/revertunchanged/" "revertunchanged+reopen/leaveunchanged/leaveunchanged+reopen;;" @@ -118,14 +117,13 @@ struct defaultspec { "SpecMap;code:259;type:wlist;len:64;;" }, { + "group", "Group;code:401;rq;ro;len:32;;" - "Description;code:NNN;type:text;fmt:L:len:128;;" "MaxResults;code:402;type:word;len:12;;" "MaxScanRows;code:403;type:word;len:12;;" "MaxLockTime;code:407;type:word;len:12;;" "MaxOpenFiles;code:413;type:word;len:12;;" - "MaxMemory;code:NNN;type:word;len:12;;" "Timeout;code:406;type:word;len:12;;" "PasswordTimeout;code:409;type:word;len:12;;" "LdapConfig;code:410;type:line;len:128;;" @@ -280,8 +278,7 @@ struct defaultspec { "Owner;code:704;len:32;open:isolate;;" "Name;code:703;rq;type:line;len:32;open:isolate;;" "Parent;code:702;rq;len:64;open:isolate;;" - "Type;code:708;rq;type:select;len:32;open:isolate;" - "val:mainline/virtual/development/release/task;;" + "Type;code:708;rq;len:32;open:isolate;;" "Description;code:709;type:text;len:128;open:isolate;;" "Options;code:707;type:line;len:64;val:" "allsubmit/ownersubmit,unlocked/locked," @@ -289,7 +286,6 @@ struct defaultspec { "mergedown/mergeany;open:isolate;;" "ParentView;code:NNN;rq;open:isolate;" "pre:inherit;val:noinherit/inherit;;" - "Components;code:NNN;type:wlist;words:3;maxwords:4;len:64;open:propagate;fmt:C;;" "Paths;code:710;rq;type:wlist;words:2;maxwords:3;len:64;open:propagate;fmt:C;;" "Remapped;code:711;type:wlist;words:2;len:64;open:propagate;fmt:C;;" "Ignored;code:712;type:wlist;words:1;len:64;open:propagate;fmt:C;;"