projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
There's a name clash between OpenSSL and RSAref. Since this engine handles
[openssl.git]
/
demos
/
ssl
/
inetdsrv.cpp
diff --git
a/demos/ssl/inetdsrv.cpp
b/demos/ssl/inetdsrv.cpp
index b09c8b6e0bb90ab46c1847de9bf5513ed1f1021d..efd70d2771b8718b26c96446d3728960be64b16a 100644
(file)
--- a/
demos/ssl/inetdsrv.cpp
+++ b/
demos/ssl/inetdsrv.cpp
@@
-8,11
+8,11
@@
#include <errno.h>
#include "rsa.h" /* SSLeay stuff */
#include <errno.h>
#include "rsa.h" /* SSLeay stuff */
-#include
"crypto.h"
-#include
"x509.h"
-#include
"pem.h"
-#include
"ssl.h"
-#include
"err.h"
+#include
<openssl/crypto.h>
+#include
<openssl/x509.h>
+#include
<openssl/pem.h>
+#include
<openssl/ssl.h>
+#include
<openssl/err.h>
#define HOME "/usr/users/sampo/demo/"
#define CERTF HOME "plain-cert.pem"
#define HOME "/usr/users/sampo/demo/"
#define CERTF HOME "plain-cert.pem"
@@
-65,12
+65,12
@@
void main ()
str = X509_NAME_oneline (X509_get_subject_name (client_cert));
CHK_NULL(str);
fprintf (log, "\t subject: %s\n", str);
str = X509_NAME_oneline (X509_get_subject_name (client_cert));
CHK_NULL(str);
fprintf (log, "\t subject: %s\n", str);
-
F
ree (str);
+
OPENSSL_f
ree (str);
str = X509_NAME_oneline (X509_get_issuer_name (client_cert));
CHK_NULL(str);
fprintf (log, "\t issuer: %s\n", str);
str = X509_NAME_oneline (X509_get_issuer_name (client_cert));
CHK_NULL(str);
fprintf (log, "\t issuer: %s\n", str);
-
F
ree (str);
+
OPENSSL_f
ree (str);
/* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */
/* We could do all sorts of certificate verification stuff here before
deallocating the certificate. */