Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
dkim
const.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File const.patch of Package dkim
--- libdkim/src/dkimbase.h.orig 2023-01-18 14:39:59.007750539 +0100 +++ libdkim/src/dkimbase.h 2023-01-18 14:40:43.852315541 +0100 @@ -41,7 +41,7 @@ int Init(void); - int Process( char* szBuffer, int nBufLength, bool bEOF ); + int Process( const char* szBuffer, int nBufLength, bool bEOF ); int ProcessFinal(void); int Alloc( char*& szBuffer, int nRequiredSize ); @@ -58,7 +58,7 @@ static string RelaxHeader( const string& sHeader ); virtual int ProcessHeaders(void); - virtual int ProcessBody( char* szBuffer, int nBufLength, bool bEOF ); + virtual int ProcessBody( const char* szBuffer, int nBufLength, bool bEOF ); protected: char* m_From; --- libdkim/src/dkimsign.cpp.orig 2023-01-18 14:43:25.522353106 +0100 +++ libdkim/src/dkimsign.cpp 2023-01-18 14:44:01.830810727 +0100 @@ -546,7 +546,7 @@ // if bFold, fold at cbrk char // //////////////////////////////////////////////////////////////////////////////// -void CDKIMSign::AddTagToSig( char* Tag, const string &sValue, char cbrk, bool bFold ) +void CDKIMSign::AddTagToSig( const char* Tag, const string &sValue, char cbrk, bool bFold ) { int nTagLen = strlen(Tag); @@ -574,7 +574,7 @@ // AddTagToSig - add tag and numeric value to signature folding if necessary // //////////////////////////////////////////////////////////////////////////////// -void CDKIMSign::AddTagToSig( char* Tag, unsigned long nValue ) +void CDKIMSign::AddTagToSig( const char* Tag, unsigned long nValue ) { char szValue[64]; sprintf( szValue, "%u", nValue ); --- libdkim/src/dkimsign.h.orig 2023-01-18 14:43:22.266312067 +0100 +++ libdkim/src/dkimsign.h 2023-01-18 14:43:43.130575035 +0100 @@ -50,8 +50,8 @@ bool ParseFromAddress( void ); void InitSig(void); - void AddTagToSig( char* Tag, const string &sValue, char cbrk, bool bFold ); - void AddTagToSig( char* Tag, unsigned long nValue ); + void AddTagToSig( const char* Tag, const string &sValue, char cbrk, bool bFold ); + void AddTagToSig( const char* Tag, unsigned long nValue ); void AddInterTagSpace( int nSizeOfNextTag ); void AddFoldedValueToSig( const string &sValue, char cbrk ); --- libdkim/src/libdkimtest.cpp.orig 2023-01-18 14:42:06.641358911 +0100 +++ libdkim/src/libdkimtest.cpp 2023-01-18 14:42:24.461583512 +0100 @@ -79,9 +79,9 @@ int main(int argc, char* argv[]) { int n; - char* PrivKeyFile = "test.pem"; - char* MsgFile = "test.msg"; - char* OutFile = "signed.msg"; + const char* PrivKeyFile = "test.pem"; + const char* MsgFile = "test.msg"; + const char* OutFile = "signed.msg"; int nPrivKeyLen; char PrivKey[2048]; char Buffer[1024]; --- libdkim/src/dkimbase.cpp.orig 2023-01-18 16:13:51.445851395 +0100 +++ libdkim/src/dkimbase.cpp 2023-01-18 16:14:23.414224838 +0100 @@ -117,10 +117,10 @@ // Process - split buffers into lines without any CRs or LFs at the end. // //////////////////////////////////////////////////////////////////////////////// -int CDKIMBase::Process( char* szBuffer, int nBufLength, bool bEOF ) +int CDKIMBase::Process( const char* szBuffer, int nBufLength, bool bEOF ) { - char* p = szBuffer; - char* e = szBuffer + nBufLength; + const char* p = szBuffer; + const char* e = szBuffer + nBufLength; while( p < e ) { @@ -228,7 +228,7 @@ // ProcessBody - process body line (to be implemented by derived class) // //////////////////////////////////////////////////////////////////////////////// -int CDKIMBase::ProcessBody( char* szBuffer, int nBufLength, bool bEOF ) +int CDKIMBase::ProcessBody( const char* szBuffer, int nBufLength, bool bEOF ) { return DKIM_SUCCESS; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor