* limitations under the License.
*/
-/* standard library header */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <glib.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "ClientChannel.h"
#include "ReaderHelper.h"
* limitations under the License.
*/
-/* standard library header */
#include <glib.h>
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#include "Debug.h"
#include "ByteArray.h"
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "Reader.h"
#include "Session.h"
#ifndef CLIENTCHANNEL_H_
#define CLIENTCHANNEL_H_
-/* standard library header */
#ifdef USE_AUTOSTART
#include <gio/gio.h>
#endif
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "Channel.h"
#ifdef __cplusplus
namespace smartcard_service_api
{
- class ClientChannel: public Channel
+ class EXPORT ClientChannel: public Channel
{
private:
void *context;
#ifndef CLIENTGDBUS_H_
#define CLIENTGDBUS_H_
-/* standard library header */
#include <glib.h>
-/* SLP library header */
-
-/* local header */
#include "GDBusHelper.h"
#include "smartcard-service-gdbus.h"
#ifndef READER_H_
#define READER_H_
-/* standard library header */
#ifdef USE_AUTOSTART
#include <glib.h>
#include <gio/gio.h>
#endif
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "ReaderHelper.h"
#ifdef __cplusplus
namespace smartcard_service_api
{
- class Reader: public ReaderHelper
+ class EXPORT Reader: public ReaderHelper
{
private:
void *context;
#ifndef SESERVICE_H_
#define SESERVICE_H_
-/* standard library header */
#ifdef USE_AUTOSTART
#include <glib.h>
#include <gio/gio.h>
#endif
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "SEServiceListener.h"
{
typedef void (*serviceConnected)(SEServiceHelper *service, void *context);
- class SEService : public SEServiceHelper
+ class EXPORT SEService : public SEServiceHelper
{
private:
unsigned int handle;
#ifndef SESERVICELISTENER_H_
#define SESERVICELISTENER_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
-
namespace smartcard_service_api
{
class SEServiceHelper;
- class SEServiceListener
+ class EXPORT SEServiceListener
{
public:
virtual void serviceConnected(SEServiceHelper *service,
#ifndef SESSION_H_
#define SESSION_H_
-/* standard library header */
#ifdef USE_AUTOSTART
#include <gio/gio.h>
#endif
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "SessionHelper.h"
{
class Reader;
- class Session : public SessionHelper
+ class EXPORT Session : public SessionHelper
{
private:
void *context;
Name: @PROJECT_NAME@
Description: library of Smartcard service
Version: @FULLVER@
-Requires: glib-2.0
+Requires: glib-2.0 dlog
Libs: -L${libdir} -l@PROJECT_NAME@
Cflags: -I${includedir}
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "SimpleTLV.h"
#include "AccessControlList.h"
* limitations under the License.
*/
-/* standard library header */
#include <cstdio>
#include <cstring>
#include <cerrno>
#include <sstream>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "ByteArray.h"
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "EFDIR.h"
#include "APDUHelper.h"
* limitations under the License.
*/
-/* standard library header */
#include <cstdio>
#include <cstring>
#include <sstream>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "FCI.h"
#include "SimpleTLV.h"
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "FileObject.h"
#include "APDUHelper.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "GPACE.h"
#include "GPARAACL.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "GPARAACL.h"
#include "GPARAM.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "GPARAM.h"
#include "APDUHelper.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "GPARFACL.h"
#include "PKCS15ODF.h"
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
#include <string.h>
-/* SLP library header */
-
-/* local header */
#include "ISO7816BERTLV.h"
namespace smartcard_service_api
* limitations under the License.
*/
-/* standard library header */
#include <stdio.h>
#include <string.h>
#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "ByteArray.h"
#include "OpensslHelper.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "APDUHelper.h"
#include "EFDIR.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "PKCS15DODF.h"
#include "SimpleTLV.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "PKCS15ODF.h"
#include "SimpleTLV.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "PKCS15.h"
#include "PKCS15OID.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "SimpleTLV.h"
#include "PKCS15Object.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "PKCS15Path.h"
namespace smartcard_service_api
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "PKCS15TokenInfo.h"
namespace smartcard_service_api
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Serializable.h"
namespace smartcard_service_api
#ifndef APDUHELPER_H_
#define APDUHELPER_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
+#include "Debug.h"
#include "ByteArray.h"
namespace smartcard_service_api
#ifndef ACCESSCONDITION_H_
#define ACCESSCONDITION_H_
-/* standard library header */
#include <map>
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
using namespace std;
#ifndef ACCESSCONTROLLIST_H_
#define ACCESSCONTROLLIST_H_
-/* standard library header */
#include <vector>
#include <map>
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
#include "Channel.h"
#include "AccessCondition.h"
#ifndef BYTEARRAY_H_
#define BYTEARRAY_H_
-/* standard library header */
#include <string>
#include <stdint.h>
#include <stddef.h>
#ifndef CHANNEL_H_
#define CHANNEL_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Synchronous.h"
#include "ByteArray.h"
#include "Exception.h"
unsigned int length, int error, void *userParam);
typedef void (*closeChannelCallback)(int error, void *userParam);
- class Channel : public Synchronous
+ class EXPORT Channel : public Synchronous
{
protected :
ByteArray selectResponse;
#ifndef DEBUG_H_
#define DEBUG_H_
-/* standard library header */
#include <iostream>
-/* SLP library header */
#include "dlog.h"
#ifndef EXPORT
#define EXPORT __attribute__((visibility("default")))
#endif
-/* local header */
-
#define COLOR_BLACK "\033[0;30m"
#define COLOR_RED "\033[0;31m"
#define COLOR_GREEN "\033[0;32m"
#ifndef EFDIR_H_
#define EFDIR_H_
-/* standard library header */
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "FileObject.h"
using namespace std;
#include <exception>
#include <stddef.h>
+#include "Debug.h"
#include "smartcard-types.h"
#define THROW_ERROR(errorCode) \
namespace smartcard_service_api
{
- class ExceptionBase : public std::exception
+ class EXPORT ExceptionBase : public std::exception
{
protected :
int errorCode;
}
};
- class ErrorIO : public ExceptionBase
+ class EXPORT ErrorIO : public ExceptionBase
{
private :
unsigned char sw[2];
}
};
- class ErrorSecurity : public ExceptionBase
+ class EXPORT ErrorSecurity : public ExceptionBase
{
public :
ErrorSecurity(int errorCode) throw()
}
};
- class ErrorIllegalState : public ExceptionBase
+ class EXPORT ErrorIllegalState : public ExceptionBase
{
public :
ErrorIllegalState(int errorCode) throw()
}
};
- class ErrorIllegalParameter : public ExceptionBase
+ class EXPORT ErrorIllegalParameter : public ExceptionBase
{
public :
ErrorIllegalParameter(int errorCode) throw()
}
};
- class ThrowError
+ class EXPORT ThrowError
{
public :
static void throwError(int errorCode)
#ifndef FCI_H_
#define FCI_H_
-/* standard library header */
#include <string>
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
namespace smartcard_service_api
#ifndef FILEOBJECT_H_
#define FILEOBJECT_H_
-/* standard library header */
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "ProviderHelper.h"
#include "ByteArray.h"
#include "FCI.h"
#ifndef GPACE_H_
#define GPACE_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "AccessControlList.h"
#ifndef GPARAACL_H_
#define GPARAACL_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "AccessControlList.h"
#ifndef GPARAM_H_
#define GPARAM_H_
-/* standard library header */
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "FileObject.h"
using namespace std;
#ifndef GPARFACL_H_
#define GPARFACL_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
#ifdef __cplusplus
#include "AccessControlList.h"
#ifndef ISO7816BERTLV_H_
#define ISO7816BERTLV_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
#include "TLVHelper.h"
#ifndef LOCK_H_
#define LOCK_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
-#include "pthread.h"
+#include <pthread.h>
namespace smartcard_service_api
{
- class Lock
+ class EXPORT Lock
{
public:
virtual ~Lock() {};
#define SCOPE_LOCK(X) \
if (const AutoLockHelper& TOKENPASTE2(lock_, __LINE__) = makeAutoLock(X))
- class AutoLockHelper
+ class EXPORT AutoLockHelper
{
public:
inline operator bool() const
};
template<typename T>
- class AutoLock : public AutoLockHelper
+ class EXPORT AutoLock : public AutoLockHelper
{
private:
T *lock;
#ifndef NUMBERSTREAM_H_
#define NUMBERSTREAM_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
namespace smartcard_service_api
* limitations under the License.
*/
-/* standard library header */
#include <stdint.h>
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
#ifndef OPENSSLHELPER_H_
#ifndef PKCS15_H_
#define PKCS15_H_
-/* standard library header */
#include <map>
-/* SLP library header */
-
-/* local header */
#include "PKCS15Object.h"
#include "PKCS15ODF.h"
#ifndef PKCS15DODF_H_
#define PKCS15DODF_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "PKCS15Object.h"
#include "PKCS15OID.h"
#ifndef PKCS15ODF_H_
#define PKCS15ODF_H_
-/* standard library header */
#include <map>
-/* SLP library header */
-
-/* local header */
#include "FileObject.h"
#include "PKCS15DODF.h"
#ifndef PKCS15OID_H_
#define PKCS15OID_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
namespace smartcard_service_api
#ifndef PKCS15OBJECT_H_
#define PKCS15OBJECT_H_
-/* standard library header */
#include <map>
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "FileObject.h"
#include "PKCS15Path.h"
#ifndef PKCS15Path_H_
#define PKCS15Path_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
namespace smartcard_service_api
#ifndef PKCS15TOKENINFO_H_
#define PKCS15TOKENINFO_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "PKCS15Object.h"
namespace smartcard_service_api
#ifndef PROVIDERHELPER_H_
#define PROVIDERHELPER_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Channel.h"
namespace smartcard_service_api
#ifndef READERHELPER_H_
#define READERHELPER_H_
-/* standard library header */
#include <vector>
#include <string>
-/* SLP library header */
-
-/* local header */
#include "Synchronous.h"
#include "SessionHelper.h"
typedef void (*openSessionCallback)(SessionHelper *session, int error,
void *userData);
- class ReaderHelper : public Synchronous
+ class EXPORT ReaderHelper : public Synchronous
{
protected:
SEServiceHelper *seService;
#ifndef SESERVICEHELPER_H_
#define SESERVICEHELPER_H_
-/* standard library header */
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "Synchronous.h"
#include "ReaderHelper.h"
namespace smartcard_service_api
{
- class SEServiceHelper : public Synchronous
+ class EXPORT SEServiceHelper : public Synchronous
{
protected:
vector<ReaderHelper *> readers;
namespace smartcard_service_api
{
- class Serializable
+ class EXPORT Serializable
{
virtual const ByteArray serialize() const = 0;
virtual void deserialize(const ByteArray &buffer) = 0;
#ifndef SESSIONHELPER_H_
#define SESSIONHELPER_H_
-/* standard library header */
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "Synchronous.h"
#include "ByteArray.h"
#include "Channel.h"
typedef void (*closeSessionCallback)(int error, void *userData);
typedef void (*getChannelCountCallback)(unsigned count, int error, void *userData);
- class SessionHelper : public Synchronous
+ class EXPORT SessionHelper : public Synchronous
{
protected:
ReaderHelper *reader;
#ifndef SIGNATUREHELPER_H_
#define SIGNATUREHELPER_H_
-/* standard library header */
#ifdef __cplusplus
#include <vector>
+#include "ByteArray.h"
#endif /* __cplusplus */
-/* SLP library header */
-
-/* local header */
#include "smartcard-types.h"
-#ifdef __cplusplus
-#include "ByteArray.h"
-#endif /* __cplusplus */
+#include "Debug.h"
#ifdef __cplusplus
using namespace std;
#ifndef TERMINAL_H_
#define TERMINAL_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "ByteArray.h"
#include "Synchronous.h"
typedef void (*terminalTransmitCallback)(const unsigned char *buffer, unsigned int length, int error, void *userParam);
typedef void (*terminalGetATRCallback)(const unsigned char *buffer, unsigned int length, int error, void *userParam);
- class Terminal : public Synchronous
+ class EXPORT Terminal : public Synchronous
{
protected:
terminalNotificationCallback statusCallback;
#ifndef TERMINALINTERFACE_H_
#define TERMINALINTERFACE_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
-
//typedef unsigned int terminal_handle_h;
//
//typedef enum
Name: @COMMON_LIB@
Description: Common library of Smartcard service
Version: @FULLVER@
-Requires: glib-2.0
+Requires: glib-2.0 dlog
Libs: -L${libdir} -l@COMMON_LIB@
Cflags: -I${includedir}
Name: smartcard-service
Summary: Smartcard Service
-Version: 0.1.27
+Version: 0.1.28
Release: 0
Group: Network & Connectivity/Service
License: Apache-2.0
* limitations under the License.
*/
-/* standard library header */
#include <pthread.h>
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "ClientInstance.h"
#include "ServerResource.h"
* limitations under the License.
*/
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Debug.h"
#include "ServerChannel.h"
#include "APDUHelper.h"
* limitations under the License.
*/
-/* standard library header */
#include <unistd.h>
#include <glib.h>
#include <gio/gio.h>
#include <string>
#include <sys/socket.h>
-/* SLP library header */
#ifdef USER_SPACE_SMACK
#include "security-server.h"
#endif
-/* local header */
#include "smartcard-types.h"
#include "Debug.h"
#include "ByteArray.h"
#ifndef CLIENTINSTANCE_H_
#define CLIENTINSTANCE_H_
-/* standard library header */
#include <map>
#include <vector>
#include <string>
-/* SLP library header */
-
-/* local header */
#include "ServiceInstance.h"
namespace smartcard_service_api
#ifndef SERVERCHANNEL_H_
#define SERVERCHANNEL_H_
-/* standard library header */
-
-/* SLP library header */
-
-/* local header */
#include "Channel.h"
#include "Terminal.h"
#include "ServerSession.h"
#ifndef SERVERGDBUS_H_
#define SERVERGDBUS_H_
-/* standard library header */
#include <glib.h>
#include <queue>
#include <vector>
-/* SLP library header */
-
-/* local header */
#include "Synchronous.h"
#include "GDBusHelper.h"
#include "smartcard-service-gdbus.h"