Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8f27d3dc
Commit
8f27d3dc
authored
May 29, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import from yaSSL
parent
a401734c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
8 deletions
+30
-8
extra/yassl/include/yassl_error.hpp
extra/yassl/include/yassl_error.hpp
+2
-2
extra/yassl/mySTL/stdexcept.hpp
extra/yassl/mySTL/stdexcept.hpp
+0
-2
extra/yassl/src/yassl_error.cpp
extra/yassl/src/yassl_error.cpp
+3
-0
extra/yassl/src/yassl_int.cpp
extra/yassl/src/yassl_int.cpp
+8
-3
extra/yassl/taocrypt/src/integer.cpp
extra/yassl/taocrypt/src/integer.cpp
+4
-1
extra/yassl/taocrypt/src/misc.cpp
extra/yassl/taocrypt/src/misc.cpp
+13
-0
No files found.
extra/yassl/include/yassl_error.hpp
View file @
8f27d3dc
...
...
@@ -26,7 +26,6 @@
#ifndef yaSSL_ERROR_HPP
#define yaSSL_ERROR_HPP
#include "stdexcept.hpp"
namespace
yaSSL
{
...
...
@@ -63,7 +62,7 @@ enum { MAX_ERROR_SZ = 80 };
void
SetErrorString
(
YasslError
,
char
*
);
/* remove for now, if go back to exceptions use this wrapper
// Base class for all yaSSL exceptions
class Error : public mySTL::runtime_error {
YasslError error_;
...
...
@@ -75,6 +74,7 @@ public:
YasslError get_number() const;
Library get_lib() const;
};
*/
}
// naemspace
...
...
extra/yassl/mySTL/stdexcept.hpp
View file @
8f27d3dc
...
...
@@ -46,10 +46,8 @@ public:
// for compiler generated call, never used
static
void
operator
delete
(
void
*
)
{
assert
(
0
);
}
private:
#if defined(__hpux)
// don't allow dynamic creation of exceptions
static
void
*
operator
new
(
size_t
);
#endif
};
...
...
extra/yassl/src/yassl_error.cpp
View file @
8f27d3dc
...
...
@@ -27,10 +27,12 @@
#include "yassl_error.hpp"
#include "error.hpp" // TaoCrypt error numbers
#include "openssl/ssl.h" // SSL_ERROR_WANT_READ
#include <string.h> // strncpy
namespace
yaSSL
{
/* may bring back in future
Error::Error(const char* s, YasslError e, Library l)
: mySTL::runtime_error(s), error_(e), lib_(l)
{
...
...
@@ -48,6 +50,7 @@ Library Error::get_lib() const
return lib_;
}
*/
void
SetErrorString
(
YasslError
error
,
char
*
buffer
)
...
...
extra/yassl/src/yassl_int.cpp
View file @
8f27d3dc
...
...
@@ -2106,9 +2106,14 @@ ASN1_STRING* StringHolder::GetString()
extern
"C"
void
yaSSL_CleanUp
()
{
TaoCrypt
::
CleanUp
();
ysDelete
(
yaSSL
::
cryptProviderInstance
);
ysDelete
(
yaSSL
::
sslFactoryInstance
);
ysDelete
(
yaSSL
::
sessionsInstance
);
yaSSL
::
ysDelete
(
yaSSL
::
cryptProviderInstance
);
yaSSL
::
ysDelete
(
yaSSL
::
sslFactoryInstance
);
yaSSL
::
ysDelete
(
yaSSL
::
sessionsInstance
);
// In case user calls more than once, prevent seg fault
yaSSL
::
cryptProviderInstance
=
0
;
yaSSL
::
sslFactoryInstance
=
0
;
yaSSL
::
sessionsInstance
=
0
;
}
...
...
extra/yassl/taocrypt/src/integer.cpp
View file @
8f27d3dc
...
...
@@ -2735,8 +2735,11 @@ void CleanUp()
{
tcDelete
(
one
);
tcDelete
(
zero
);
}
// In case user calls more than once, prevent seg fault
one
=
0
;
zero
=
0
;
}
Integer
::
Integer
(
RandomNumberGenerator
&
rng
,
const
Integer
&
min
,
const
Integer
&
max
)
...
...
extra/yassl/taocrypt/src/misc.cpp
View file @
8f27d3dc
...
...
@@ -81,6 +81,19 @@ extern "C" {
}
#if defined(__ICC) || defined(__INTEL_COMPILER)
extern
"C"
{
int
__cxa_pure_virtual
()
{
assert
(
"Pure virtual method called."
==
"Aborted"
);
return
0
;
}
}
// extern "C"
#endif
#endif // YASSL_PURE_C
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment