Fix encryption algorithm/key size argument processing in PKCS#7 enveloped-data
authorMartin Willi <martin@revosec.ch>
Wed, 28 Nov 2012 11:41:15 +0000 (12:41 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 19 Dec 2012 09:32:08 +0000 (10:32 +0100)
src/libstrongswan/plugins/pkcs7/pkcs7_enveloped_data.c

index 6c57ca7..5cd0d8f 100644 (file)
@@ -586,7 +586,7 @@ pkcs7_t *pkcs7_enveloped_data_gen(container_type_t type, va_list args)
                                alg = va_arg(args, int);
                                continue;
                        case BUILD_KEY_SIZE:
-                               alg = va_arg(args, int);
+                               key_size = va_arg(args, int);
                                continue;
                        case BUILD_BLOB:
                                blob = va_arg(args, chunk_t);