AuthentIC: "now there is no way to build without OpenSSL" (Andre Zepezauer)
Thanks for patch. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5011 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
7743f6944a
commit
682c464540
|
@ -20,6 +20,12 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_OPENSSL /* empty file without openssl */
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -32,10 +38,6 @@
|
|||
/* #include "hash-strings.h" */
|
||||
#include "authentic.h"
|
||||
|
||||
#ifndef ENABLE_OPENSSL
|
||||
#error "Need OpenSSL"
|
||||
#endif
|
||||
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/pem.h>
|
||||
|
@ -2411,3 +2413,5 @@ sc_get_authentic_driver(void)
|
|||
{
|
||||
return sc_get_driver();
|
||||
}
|
||||
|
||||
#endif /* ENABLE_OPENSSL */
|
||||
|
|
|
@ -21,10 +21,12 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_OPENSSL /* empty file without openssl */
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -32,10 +34,6 @@
|
|||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef ENABLE_OPENSSL
|
||||
#error "Need OpenSSL"
|
||||
#endif
|
||||
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/pem.h>
|
||||
|
@ -1019,3 +1017,5 @@ sc_pkcs15init_get_authentic_ops(void)
|
|||
{
|
||||
return &sc_pkcs15init_authentic_operations;
|
||||
}
|
||||
|
||||
#endif /* ENABLE_OPENSSL */
|
||||
|
|
|
@ -151,7 +151,9 @@ static struct profile_operations {
|
|||
{ "rutoken_ecp", (void *) sc_pkcs15init_get_rtecp_ops },
|
||||
{ "westcos", (void *) sc_pkcs15init_get_westcos_ops },
|
||||
{ "myeid", (void *) sc_pkcs15init_get_myeid_ops },
|
||||
#ifdef ENABLE_OPENSSL
|
||||
{ "authentic", (void *) sc_pkcs15init_get_authentic_ops },
|
||||
#endif
|
||||
{ NULL, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue