Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
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
Boris Kocherov
onlyoffice_core
Commits
ddb67584
Commit
ddb67584
authored
Jun 14, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
38ce5586
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
+17
-8
No files found.
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
View file @
ddb67584
...
...
@@ -17,6 +17,15 @@
#include <openssl/evp.h>
#include <openssl/conf.h>
void
BIO_FREE
(
BIO
*&
bio
)
{
if
(
bio
)
{
BIO_free
(
bio
);
bio
=
NULL
;
}
}
class
CCertificate_openssl_private
{
protected:
...
...
@@ -401,7 +410,7 @@ public:
goto
end
;
}
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
bio
=
BIO_new_mem_buf
((
void
*
)
pData
,
(
int
)
dwDataLen
);
if
(
d2i_PrivateKey_bio
(
bio
,
&
pKey
))
{
...
...
@@ -415,7 +424,7 @@ public:
goto
end
;
}
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
bio
=
BIO_new_mem_buf
((
void
*
)
pData
,
(
int
)
dwDataLen
);
if
(
d2i_PKCS8PrivateKey_bio
(
bio
,
&
pKey
,
NULL
,
(
void
*
)
pPassword
))
{
...
...
@@ -429,7 +438,7 @@ public:
goto
end
;
}
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
bio
=
BIO_new_mem_buf
((
void
*
)
pData
,
(
int
)
dwDataLen
);
p12
=
d2i_PKCS12_bio
(
bio
,
NULL
);
...
...
@@ -462,7 +471,7 @@ end:
else
*
ppKey
=
pKey
;
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
return
nErr
;
}
...
...
@@ -500,7 +509,7 @@ end:
goto
end
;
}
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
bio
=
BIO_new_mem_buf
((
void
*
)
pData
,
(
int
)
dwDataLen
);
if
(
d2i_X509_bio
(
bio
,
&
pCert
))
{
...
...
@@ -514,7 +523,7 @@ end:
goto
end
;
}
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
bio
=
BIO_new_mem_buf
((
void
*
)
pData
,
(
int
)
dwDataLen
);
p12
=
d2i_PKCS12_bio
(
bio
,
NULL
);
...
...
@@ -528,7 +537,7 @@ end:
sk_X509_pop_free
(
pCa
,
X509_free
);
EVP_PKEY_free
(
pKey
);
PKCS12_free
(
p12
);
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
nErr
=
OPEN_SSL_WARNING_ALL_OK
;
goto
end
;
}
...
...
@@ -548,7 +557,7 @@ end:
else
*
ppCert
=
pCert
;
BIO_
free
(
bio
);
BIO_
FREE
(
bio
);
return
nErr
;
}
...
...
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