fixed tag of auxiliary data payload

This commit is contained in:
Frank Morgner
2013-02-27 20:42:18 +01:00
parent e2a54cbdb6
commit 0ffedbef2d

View File

@@ -253,10 +253,10 @@ static int add_to_ASN1_AUXILIARY_DATA(
}
if (data && data_len) {
(*template)->discretionary_data1 = ASN1_OCTET_STRING_new();
if (!(*template)->discretionary_data1
(*template)->discretionary_data3 = ASN1_OCTET_STRING_new();
if (!(*template)->discretionary_data3
|| !M_ASN1_OCTET_STRING_set(
(*template)->discretionary_data1, data, data_len)) {
(*template)->discretionary_data3, data, data_len)) {
r = SC_ERROR_INTERNAL;
goto err;
}