diff options
author | Richard Lander <rlander@microsoft.com> | 2015-10-19 15:35:15 -0700 |
---|---|---|
committer | Richard Lander <rlander@microsoft.com> | 2015-10-20 22:03:17 -0700 |
commit | b4d5bc82403495bf5ca41c07e45b4448b80c3ccf (patch) | |
tree | 156b25baf1f21d446d405901bb8ed9722c3b6367 /src | |
parent | 086b32fbef099b8be50683ea942ee09fd8021866 (diff) | |
download | coreclr-b4d5bc82403495bf5ca41c07e45b4448b80c3ccf.tar.gz coreclr-b4d5bc82403495bf5ca41c07e45b4448b80c3ccf.tar.bz2 coreclr-b4d5bc82403495bf5ca41c07e45b4448b80c3ccf.zip |
Correct attribution for UUIDs and GUIDs
Diffstat (limited to 'src')
-rw-r--r-- | src/utilcode/guidfromname.cpp | 103 |
1 files changed, 65 insertions, 38 deletions
diff --git a/src/utilcode/guidfromname.cpp b/src/utilcode/guidfromname.cpp index dad72b5f84..d789b2b39a 100644 --- a/src/utilcode/guidfromname.cpp +++ b/src/utilcode/guidfromname.cpp @@ -3,46 +3,73 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. // - // GuidFromName -// Algorithm from Internet Draft document "UUIDs and GUIDs" -// By Paul J. Leach and Rich Sals, February 4, 1998. - -// This function has been adapted from the routines in the document -// uuid_create_from_name and format_uuid_v3 - -// Changes from documented routines: -// 1. Changed all instances of uuid_t to GUID. -// uuid_t field time_low is GUID field Data1. -// uuid_t field time_mid is GUID field Data2. -// uuid_t field time_hi_and_version is GUID field Data3. -// uuid_t field clock_seq_hi_and_reserved is GUID field Data4[0]. -// uuid_t field clock_seq_low is GUID field Data4[1]. -// uuid_t field node[6] is GUID field Data4[2] through Data4[8]. -// -// 2. Use a c++ implementation of the md5 cryptographic hash function. -// -// 3. Implemented the htonl, htons, ntohl, ntohs socket routines as inlines. -// -// 4. Renamed variables and types to suit my biases. - -/* -** Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. -** Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & -** Digital Equipment Corporation, Maynard, Mass. -** To anyone who acknowledges that this file is provided "AS IS" -** without any express or implied warranty: permission to use, copy, -** modify, and distribute this file for any purpose is hereby -** granted without fee, provided that the above copyright notices and -** this notice appears in all source code copies, and that none of -** the names of Open Software Foundation, Inc., Hewlett-Packard -** Company, or Digital Equipment Corporation be used in advertising -** or publicity pertaining to distribution of the software without -** specific, written prior permission. Neither Open Software -** Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment -** Corporation makes any representations about the suitability of -** this software for any purpose. +/** + +Algorithm from Internet Draft document "UUIDs and GUIDs" +By Paul J. Leach and Rich Sals, February 4, 1998. + +This function has been adapted from the routines in the document + uuid_create_from_name and format_uuid_v3 + +Changes from documented routines: +1. Changed all instances of uuid_t to GUID. + uuid_t field time_low is GUID field Data1. + uuid_t field time_mid is GUID field Data2. + uuid_t field time_hi_and_version is GUID field Data3. + uuid_t field clock_seq_hi_and_reserved is GUID field Data4[0]. + uuid_t field clock_seq_low is GUID field Data4[1]. + uuid_t field node[6] is GUID field Data4[2] through Data4[8]. + +2. Use a c++ implementation of the md5 cryptographic hash function. + +3. Implemented the htonl, htons, ntohl, ntohs socket routines as inlines. + +4. Renamed variables and types to suit my biases. + + +Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc. +Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. & +Digital Equipment Corporation, Maynard, Mass. +To anyone who acknowledges that this file is provided "AS IS" +without any express or implied warranty: permission to use, copy, +modify, and distribute this file for any purpose is hereby +granted without fee, provided that the above copyright notices and +this notice appears in all source code copies, and that none of +the names of Open Software Foundation, Inc., Hewlett-Packard +Company, or Digital Equipment Corporation be used in advertising +or publicity pertaining to distribution of the software without +specific, written prior permission. Neither Open Software +Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment +Corporation makes any representations about the suitability of +this software for any purpose. + + +Copyright(C) The Internet Society 1997. All Rights Reserved. + +This document and translations of it may be copied and furnished to others, +and derivative works that comment on or otherwise explain it or assist in +its implementation may be prepared, copied, published and distributed, in +whole or in part, without restriction of any kind, provided that the above +copyright notice and this paragraph are included on all such copies and +derivative works.However, this document itself may not be modified in any +way, such as by removing the copyright notice or references to the Internet +Society or other Internet organizations, except as needed for the purpose of +developing Internet standards in which case the procedures for copyrights +defined in the Internet Standards process must be followed, or as required +to translate it into languages other than English. + +The limited permissions granted above are perpetual and will not be revoked +by the Internet Society or its successors or assigns. + +This document and the information contained herein is provided on an "AS IS" +basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE +DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY +RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A +PARTICULAR PURPOSE. + */ #include "stdafx.h" |