]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Allow specifying GNUTLS_CPUID_OVERRIDE in either hex or decimal.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 8 Jul 2014 12:09:55 +0000 (14:09 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 8 Jul 2014 12:09:55 +0000 (14:09 +0200)
lib/accelerated/x86/x86-common.c

index b8b8cf21ea2022e7b1eca6080188b2885784f3f4..3e9f13c86f82ace6a0a7b4518d583e36a06e7b69 100644 (file)
@@ -570,7 +570,7 @@ void register_x86_crypto(void)
        char *p;
        p = getenv("GNUTLS_CPUID_OVERRIDE");
        if (p) {
-               capabilities = atoi(p);
+               capabilities = strtol(p, NULL, 0);
        }
        
        register_x86_intel_crypto(capabilities);