File fix_discards_qualifiers_warning.patch of Package open-vm-tools.7780

This patch is required in SLES11 environments which will report the following
error during compilation:

 cert_key.c: In function 'LoadOpenSSLConf':
 cert_key.c:264: error: passing argument 1 of 'ASN1_STRING_set_default_mask_asc'
   discards qualifiers from pointer target type

In order to avoid the warning, mask must be passed as a char to 
 ASN1_STRING_set_default_mask_asc.

Index: open-vm-tools-10.1.15-6677369/guestproxycerttool/cert_key.c
===================================================================
--- open-vm-tools-10.1.15-6677369.orig/guestproxycerttool/cert_key.c
+++ open-vm-tools-10.1.15-6677369/guestproxycerttool/cert_key.c
@@ -261,7 +261,7 @@ LoadOpenSSLConf(const gchar *fname)
 
    mask = NCONF_get_string(config, "req", "string_mask");
    if (mask) {
-      ASN1_STRING_set_default_mask_asc(mask);
+      ASN1_STRING_set_default_mask_asc((char*)mask);
    }
 
    ret = TRUE;
openSUSE Build Service is sponsored by