create algorithmIdentifier dynamically from OID database
[strongswan.git] / src / scepclient / scep.c
index f3e978f..bf2532c 100644 (file)
@@ -294,7 +294,7 @@ void scep_generate_transaction_id(public_key_t *key, chunk_t *transID,
        
        key->get_encoding(key, KEY_PUB_ASN1_DER, &keyEncoding);
        
        
        key->get_encoding(key, KEY_PUB_ASN1_DER, &keyEncoding);
        
-       keyInfo = asn1_wrap(ASN1_SEQUENCE, "cm",
+       keyInfo = asn1_wrap(ASN1_SEQUENCE, "mm",
                                                asn1_algorithmIdentifier(OID_RSA_ENCRYPTION), 
                                                asn1_bitstring("m", keyEncoding));
 
                                                asn1_algorithmIdentifier(OID_RSA_ENCRYPTION), 
                                                asn1_bitstring("m", keyEncoding));