Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0


  40  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  41  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  42  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
  43  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  44  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  45  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  46  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  48  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  49  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  50  * OF THE POSSIBILITY OF SUCH DAMAGE.
  51  * ====================================================================
  52  */
  53 
  54 #include <openssl/asn1t.h>
  55 #include <openssl/x509.h>
  56 #include <openssl/err.h>
  57 #include <openssl/pem.h>
  58 #include <openssl/bio.h>
  59 #include <openssl/asn1.h>
  60 #include "cms.h"
  61 #include "cms_lcl.h"
  62 
  63 IMPLEMENT_ASN1_FUNCTIONS(CMS_ContentInfo)
  64 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
  65 
  66 DECLARE_ASN1_ITEM(CMS_CertificateChoices)
  67 DECLARE_ASN1_ITEM(CMS_RevocationInfoChoice)
  68 DECLARE_STACK_OF(CMS_CertificateChoices)
  69 DECLARE_STACK_OF(CMS_RevocationInfoChoice)
  70 
  71 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms)
  72         {
  73         return cms->contentType;
  74         }
  75 
  76 CMS_ContentInfo *cms_Data_create(void)
  77         {
  78         CMS_ContentInfo *cms;
  79         cms = CMS_ContentInfo_new();
  80         if (cms)
  81                 {




  40  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  41  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  42  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
  43  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  44  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  45  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  46  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  48  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  49  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  50  * OF THE POSSIBILITY OF SUCH DAMAGE.
  51  * ====================================================================
  52  */
  53 
  54 #include <openssl/asn1t.h>
  55 #include <openssl/x509.h>
  56 #include <openssl/err.h>
  57 #include <openssl/pem.h>
  58 #include <openssl/bio.h>
  59 #include <openssl/asn1.h>
  60 #include <openssl/cms.h>
  61 #include <cms_lcl.h>
  62 
  63 IMPLEMENT_ASN1_FUNCTIONS(CMS_ContentInfo)
  64 IMPLEMENT_ASN1_PRINT_FUNCTION(CMS_ContentInfo)
  65 
  66 DECLARE_ASN1_ITEM(CMS_CertificateChoices)
  67 DECLARE_ASN1_ITEM(CMS_RevocationInfoChoice)
  68 DECLARE_STACK_OF(CMS_CertificateChoices)
  69 DECLARE_STACK_OF(CMS_RevocationInfoChoice)
  70 
  71 const ASN1_OBJECT *CMS_get0_type(CMS_ContentInfo *cms)
  72         {
  73         return cms->contentType;
  74         }
  75 
  76 CMS_ContentInfo *cms_Data_create(void)
  77         {
  78         CMS_ContentInfo *cms;
  79         cms = CMS_ContentInfo_new();
  80         if (cms)
  81                 {