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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f79cd053
Commit
f79cd053
authored
Mar 28, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import yaSSL
parent
f8b32417
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
extra/yassl/src/ssl.cpp
extra/yassl/src/ssl.cpp
+3
-0
No files found.
extra/yassl/src/ssl.cpp
View file @
f79cd053
...
@@ -58,6 +58,9 @@ int read_file(SSL_CTX* ctx, const char* file, int format, CertType type)
...
@@ -58,6 +58,9 @@ int read_file(SSL_CTX* ctx, const char* file, int format, CertType type)
if
(
format
!=
SSL_FILETYPE_ASN1
&&
format
!=
SSL_FILETYPE_PEM
)
if
(
format
!=
SSL_FILETYPE_ASN1
&&
format
!=
SSL_FILETYPE_PEM
)
return
SSL_BAD_FILETYPE
;
return
SSL_BAD_FILETYPE
;
if
(
file
==
NULL
||
!
file
[
0
])
return
SSL_BAD_FILE
;
FILE
*
input
=
fopen
(
file
,
"rb"
);
FILE
*
input
=
fopen
(
file
,
"rb"
);
if
(
!
input
)
if
(
!
input
)
return
SSL_BAD_FILE
;
return
SSL_BAD_FILE
;
...
...
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