+{
+ if (cms->d.envelopedData->encryptedContentInfo->cipher)
+ {
-+ //If cipher is set it's encrypting
++ /* If cipher is set it's encrypting */
+ return cms_EnvelopedData_Encryption_init_bio(cms);
+ }
+
-+ //If cipher is not set it's decrypting
++ /* If cipher is not set it's decrypting */
+ return cms_EnvelopedData_Decryption_init_bio(cms);
}
+ return r;
+ }
+
-+ //if ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED not supported
++ /* if ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED not supported */
+
+ int supportedRiType = cms_pkey_get_ri_type(pk);
+
+ }
+
+ if (flags & CMS_USE_ORIGINATOR_KEYID) {
-+ //kari->originator->issuerAndSerialNumber
++ /* kari->originator->issuerAndSerialNumber */
+ oik->type = CMS_OIK_KEYIDENTIFIER;
+ oik->d.subjectKeyIdentifier = ASN1_OCTET_STRING_new();
+ if (oik->d.subjectKeyIdentifier == NULL)
# define ASN1_PKEY_CTRL_SET1_TLS_ENCPT 0x9
# define ASN1_PKEY_CTRL_GET1_TLS_ENCPT 0xa
-+// This control use for decryption
-+// when algorithm support multiple ri types
++/* This control use for decryption */
++/* when algorithm support multiple ri types */
+# define ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED 0xb
+
int EVP_PKEY_asn1_get_count(void);