|
reSIProcate/stack
9694
|
00001 #if defined(HAVE_CONFIG_H) 00002 #include "config.h" 00003 #endif 00004 00005 #include "resip/stack/MultipartSignedContents.hxx" 00006 #include "resip/stack/SipMessage.hxx" 00007 #include "rutil/Logger.hxx" 00008 //#include "resip/stack/EncodingContext.hxx" 00009 #include "rutil/Random.hxx" 00010 #include "rutil/WinLeakCheck.hxx" 00011 00012 using namespace resip; 00013 using namespace std; 00014 00015 #define RESIPROCATE_SUBSYSTEM Subsystem::CONTENTS 00016 00017 bool 00018 MultipartSignedContents::init() 00019 { 00020 static ContentsFactory<MultipartSignedContents> factory; 00021 (void)factory; 00022 return true; 00023 } 00024 00025 MultipartSignedContents::MultipartSignedContents() 00026 : MultipartMixedContents(getStaticType()) 00027 {} 00028 00029 MultipartSignedContents::MultipartSignedContents(const HeaderFieldValue& hfv, const Mime& contentsType) 00030 : MultipartMixedContents(hfv, contentsType) 00031 { 00032 } 00033 00034 00035 MultipartSignedContents::MultipartSignedContents(const MultipartSignedContents& rhs) 00036 : MultipartMixedContents(rhs) 00037 { 00038 } 00039 00040 00041 MultipartSignedContents::~MultipartSignedContents() 00042 { 00043 } 00044 00045 00046 MultipartSignedContents& 00047 MultipartSignedContents::operator=(const MultipartSignedContents& rhs) 00048 { 00049 if (this != &rhs) 00050 { 00051 MultipartMixedContents::operator=( rhs); 00052 } 00053 return *this; 00054 } 00055 00056 00057 Contents* 00058 MultipartSignedContents::clone() const 00059 { 00060 return new MultipartSignedContents(*this); 00061 } 00062 00063 00064 const Mime& 00065 MultipartSignedContents::getStaticType() 00066 { 00067 static Mime type("multipart","signed"); 00068 return type; 00069 } 00070 00071 /* ==================================================================== 00072 * The Vovida Software License, Version 1.0 00073 * 00074 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. 00075 * 00076 * Redistribution and use in source and binary forms, with or without 00077 * modification, are permitted provided that the following conditions 00078 * are met: 00079 * 00080 * 1. Redistributions of source code must retain the above copyright 00081 * notice, this list of conditions and the following disclaimer. 00082 * 00083 * 2. Redistributions in binary form must reproduce the above copyright 00084 * notice, this list of conditions and the following disclaimer in 00085 * the documentation and/or other materials provided with the 00086 * distribution. 00087 * 00088 * 3. The names "VOCAL", "Vovida Open Communication Application Library", 00089 * and "Vovida Open Communication Application Library (VOCAL)" must 00090 * not be used to endorse or promote products derived from this 00091 * software without prior written permission. For written 00092 * permission, please contact vocal@vovida.org. 00093 * 00094 * 4. Products derived from this software may not be called "VOCAL", nor 00095 * may "VOCAL" appear in their name, without prior written 00096 * permission of Vovida Networks, Inc. 00097 * 00098 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 00099 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00100 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND 00101 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA 00102 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES 00103 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL, 00104 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00105 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00106 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 00107 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00108 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 00109 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 00110 * DAMAGE. 00111 * 00112 * ==================================================================== 00113 * 00114 * This software consists of voluntary contributions made by Vovida 00115 * Networks, Inc. and many individuals on behalf of Vovida Networks, 00116 * Inc. For more information on Vovida Networks, Inc., please see 00117 * <http://www.vovida.org/>. 00118 * 00119 */
1.7.5.1