Coverage Report

Created: 2024-07-23 06:39

/src/resiprocate/resip/stack/MultipartSignedContents.cxx
Line
Count
Source (jump to first uncovered line)
1
#if defined(HAVE_CONFIG_H)
2
#include "config.h"
3
#endif
4
5
#include "resip/stack/MultipartSignedContents.hxx"
6
#include "resip/stack/SipMessage.hxx"
7
#include "rutil/Logger.hxx"
8
//#include "resip/stack/EncodingContext.hxx"
9
#include "rutil/Random.hxx"
10
#include "rutil/WinLeakCheck.hxx"
11
12
using namespace resip;
13
using namespace std;
14
15
#define RESIPROCATE_SUBSYSTEM Subsystem::CONTENTS
16
17
bool
18
MultipartSignedContents::init()
19
4
{
20
4
   static ContentsFactory<MultipartSignedContents> factory;
21
4
   (void)factory;
22
4
   return true;
23
4
}
24
25
MultipartSignedContents::MultipartSignedContents()
26
   : MultipartMixedContents(getStaticType())
27
0
{}
28
29
MultipartSignedContents::MultipartSignedContents(const HeaderFieldValue& hfv, const Mime& contentsType)
30
   : MultipartMixedContents(hfv, contentsType)
31
0
{
32
0
}
33
 
34
35
MultipartSignedContents::MultipartSignedContents(const MultipartSignedContents& rhs)
36
   : MultipartMixedContents(rhs)
37
0
{
38
0
}
39
40
41
MultipartSignedContents::~MultipartSignedContents()
42
0
{
43
0
}
44
45
46
MultipartSignedContents&
47
MultipartSignedContents::operator=(const MultipartSignedContents& rhs)
48
0
{
49
0
   if (this != &rhs)
50
0
   {
51
0
      MultipartMixedContents::operator=( rhs);
52
0
   }
53
0
   return *this;
54
0
}
55
56
57
Contents* 
58
MultipartSignedContents::clone() const
59
0
{
60
0
   return new MultipartSignedContents(*this);
61
0
}
62
63
64
const Mime& 
65
MultipartSignedContents::getStaticType() 
66
2
{
67
2
   static Mime type("multipart","signed");
68
2
   return type;
69
2
}
70
71
/* ====================================================================
72
 * The Vovida Software License, Version 1.0 
73
 * 
74
 * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
75
 * 
76
 * Redistribution and use in source and binary forms, with or without
77
 * modification, are permitted provided that the following conditions
78
 * are met:
79
 * 
80
 * 1. Redistributions of source code must retain the above copyright
81
 *    notice, this list of conditions and the following disclaimer.
82
 * 
83
 * 2. Redistributions in binary form must reproduce the above copyright
84
 *    notice, this list of conditions and the following disclaimer in
85
 *    the documentation and/or other materials provided with the
86
 *    distribution.
87
 * 
88
 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
89
 *    and "Vovida Open Communication Application Library (VOCAL)" must
90
 *    not be used to endorse or promote products derived from this
91
 *    software without prior written permission. For written
92
 *    permission, please contact vocal@vovida.org.
93
 *
94
 * 4. Products derived from this software may not be called "VOCAL", nor
95
 *    may "VOCAL" appear in their name, without prior written
96
 *    permission of Vovida Networks, Inc.
97
 * 
98
 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
99
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
100
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
101
 * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
102
 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
103
 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
104
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
105
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
106
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
107
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
108
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
109
 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
110
 * DAMAGE.
111
 * 
112
 * ====================================================================
113
 * 
114
 * This software consists of voluntary contributions made by Vovida
115
 * Networks, Inc. and many individuals on behalf of Vovida Networks,
116
 * Inc.  For more information on Vovida Networks, Inc., please see
117
 * <http://www.vovida.org/>.
118
 *
119
 */