From: John Wolfe Date: Tue, 21 Jul 2020 18:52:59 +0000 (-0700) Subject: Backout the previous vgauth changes for openssl 1.1.1. X-Git-Tag: stable-11.2.0~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de28bcaf8e4e85bdfcc2d67577bb2a3656f76d4f;p=thirdparty%2Fopen-vm-tools.git Backout the previous vgauth changes for openssl 1.1.1. --- diff --git a/open-vm-tools/vgauth/common/certverify.h b/open-vm-tools/vgauth/common/certverify.h index d7c6410b6..3fe1bcb4e 100644 --- a/open-vm-tools/vgauth/common/certverify.h +++ b/open-vm-tools/vgauth/common/certverify.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016, 2020 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2016 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -27,7 +27,6 @@ #include #include "VGAuthAuthentication.h" -#include "openssl/opensslv.h" // For OPENSSL_VERSION_NUMBER. /* new API from OpenSSL 1.1.0 * https://www.openssl.org/docs/manmaster/crypto/EVP_DigestInit.html diff --git a/open-vm-tools/vgauth/lib/proto.c b/open-vm-tools/vgauth/lib/proto.c index 123869189..d4d3c4d36 100644 --- a/open-vm-tools/vgauth/lib/proto.c +++ b/open-vm-tools/vgauth/lib/proto.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2012-2017, 2019-2020 VMware, Inc. All rights reserved. + * Copyright (C) 2012-2017,2019 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -2068,7 +2068,7 @@ VGAuth_SendValidateSamlBearerTokenRequest(VGAuthContext *ctx, *userHandle = NULL; /* - * ValidateSAMLBearerToken has no security restrictions, so we don't care + * ValidateSAMLBeraerToken has no security restrictions, so we don't care * what user is used. */ if (!VGAuth_IsConnectedToServiceAsAnyUser(ctx)) { diff --git a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c index fbadee2c6..d5bb4f8b9 100644 --- a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c +++ b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c @@ -1120,7 +1120,7 @@ BuildCertChain(xmlNodePtr x509Node, */ ret = xmlSecCryptoAppKeysMngrCertLoadMemory(mgr, pemCert, - (xmlSecSize) strlen(pemCert), + strlen(pemCert), xmlSecKeyDataFormatPem, xmlSecKeyDataTypeTrusted); if (ret < 0) {