- Fixed A4 support in the `ippevepcl` program (Issue #1544)
- Fixed issues with the environment variable support of CGI programs
(Issue #1547)
+- Fixed renewal of expired self-signed certificates (Issue #1590)
- Fixed potential crash bug in `cupsCheckDestSupported` function.
- Removed hash support for SHA2-512-224 and SHA2-512-256.
- Removed `mantohtml` script for generating html pages (use
char *creds = cupsCopyCredentials(tls_keypath, cn);
// PEM-encoded certificate
- have_creds = creds && cupsGetCredentialsExpiration(creds) > time(NULL);
+ have_creds = cupsGetCredentialsExpiration(creds) > time(NULL);
free(creds);
}
}
DEBUG_printf("3gnutls_import_certs(credentials=\"%s\", num_certs=%p, certs=%p)", credentials, (void *)num_certs, (void *)certs);
+ if (!credentials)
+ {
+ *num_certs = 0;
+ return (NULL);
+ }
+
// Import all certificates from the string...
datum.data = (void *)credentials;
datum.size = strlen(credentials);
char *creds = cupsCopyCredentials(tls_keypath, cn);
// PEM-encoded certificate
- have_creds = creds && cupsGetCredentialsExpiration(creds) > time(NULL);
+ have_creds = cupsGetCredentialsExpiration(creds) > time(NULL);
free(creds);
}
}