repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
kaidokert/old-esteid-stack
src/utility/asnCertificate.cpp
/*! \file asnCertificate.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "asnCertificate.h" #include <sstream> #include <time.h> #define idSubjectAltName "172.16.17.32" #define idKeyUsage "2.5.29.15" #define idExtKeyU...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEIDRecord.cpp
/* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
kaidokert/old-esteid-stack
src/windows/SmartCardRemoval/SmartCardRemoval.cpp
<reponame>kaidokert/old-esteid-stack // SmartCardRemoval.cpp : Implementation of WinMain #include "precompiled.h" #include "resource.h" #include "SmartCardRemoval.h" #include <fstream> #include <iostream> #include <exception> #include <utility/monitorThread.h> #include "ProcessStarter.h" #include "Tlhelp32.h" #prag...
kaidokert/old-esteid-stack
src/utility/threadObj.cpp
/*! \file threadObj.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "threadObj.h" #include <iostream> #ifndef _WIN32 //pthreads #include <pthread.h> struct mutexPriv { pthread_mutex_t m_mutex; mutexPriv() { p...
kaidokert/old-esteid-stack
src/esteidpkcs11/esteidpkcs11.cpp
<reponame>kaidokert/old-esteid-stack<filename>src/esteidpkcs11/esteidpkcs11.cpp // esteidpkcs11.cpp : Defines the entry point for the DLL application. // #include "precompiled.h" #include "PKCS11Context.h" #ifdef _WIN32 #include <crtdbg.h> #endif #ifdef _MANAGED #pragma managed(push, off) #endif #if defined(_WIN32)...
kaidokert/old-esteid-stack
smartcard++/CardBase.cpp
/*! \file CardBase.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/CardBase.h> #include <algorithm> #include <smartcard++/helperMacro.h> CardError::CardError(byte a,byte b):runtime_error("invalid condi...
kaidokert/old-esteid-stack
src/windows/csp_tool/pkicommon/cryptContext.cpp
#include "precompiled.h" #include "cryptContext.h" #define MAXCONTAINER 200 using std::wstring; using std::string; using std::vector; cryptContext::cryptContext(wstring provider,wstring container,DWORD flags) { LPCWSTR provName = provider.length() ? provider.c_str() : NULL; LPCWSTR contName = container.length() ...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/EstEIDSigningPluginBHO.cpp
/* * EstEIDSigningPluginBHO * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
kaidokert/old-esteid-stack
src/esteidutil/EsteidUtil.cpp
<filename>src/esteidutil/EsteidUtil.cpp /*! \file EsteidUtil.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include <wx/cmdline.h> class mApp : public wxApp { bool verbose; public: virtual boo...
kaidokert/old-esteid-stack
src/tests/testpkcs.cpp
#include "precompiled.h" #include <iostream> #include "utility/logger.h" #include "utility/pkcs11module.h" int tryLoad(std::string libname) { std::cout << "-----loading " << libname << std::endl; try { pkcs11module mod2(libname.c_str()); mod2.test(std::cout); } catch(std::runtime_error &err) { std::cout << "...
kaidokert/old-esteid-stack
src/qt-id-updater/ScheduledUpdateTask.cpp
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/BHOIEToolsItem.cpp
/* * EstEIDSigningPluginBHO * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any ...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/CardMonitorThread.cpp
/*! \file CardMonitorThread.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "CardMonitorThread.h" #include "cardlib/SmartCardManager.h" #include "cardlib/EstEidCard.h" #include <vector> struct WorkerPriv { SmartC...
kaidokert/old-esteid-stack
smartcard++/esteid/EstEidCard.cpp
/*! \file EstEidCard.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/esteid/EstEidCard.h> #include <smartcard++/helperMacro.h> #include <smartcard++/SCError.h> #include <algorithm> using std::string; bool...
kaidokert/old-esteid-stack
smartcard++/SmartCardManager.cpp
<filename>smartcard++/SmartCardManager.cpp /*! \file PCSCManager.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/SmartCardManager.h> #include <smartcard++/PCSCManager.h> #include <smartcard++/CTAPIManager.h...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEID_utility.cpp
<reponame>kaidokert/old-esteid-stack /* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
kaidokert/old-esteid-stack
src/esteidutil/MainDialog_2.cpp
/*! \file MainDialog_2.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include <smartcard++/PCSCManager.h> #include <smartcard++/esteid/EstEidCard.h> #include "utility/asnObject.h" #include "utility/asnC...
kaidokert/old-esteid-stack
src/qt-id-updater/InstallChecker.cpp
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEIDSchema.cpp
<reponame>kaidokert/old-esteid-stack /* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (...
kaidokert/old-esteid-stack
src/utility/opensslObj.cpp
/*! \file opensslObj.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "netObj.h" #include "opensslObj.h" #if HAVE_OPENSSL #include <openssl/x509.h> #include <openssl/err.h> #include <openssl/engine.h> #include <netd...
kaidokert/old-esteid-stack
src/windows/esteidcsp/RegKey.cpp
<filename>src/windows/esteidcsp/RegKey.cpp /*! \file RegKey.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "RegKey.h" #include <tchar.h> RegKey::RegKey(HKEY parent,std::string name,REGSAM access) { DWORD dwDisp...
kaidokert/old-esteid-stack
src/windows/esteidcm/notimplemented.cpp
<filename>src/windows/esteidcm/notimplemented.cpp #include "precompiled.h" #include "esteidcm.h" DWORD WINAPI CardDeleteContainer( __in PCARD_DATA pCardData, __in BYTE bContainerIndex, __in DWORD dwReserved ){ dbgPrintf("CardDeleteContainer:dummy"); return ret(E_UN...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/EstEIDSigningBHO.cpp
/* * EstEIDSigningPluginBHO * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
kaidokert/old-esteid-stack
src/tests/testctapi.cpp
#include "precompiled.h" #include <iostream> #include <smartcard++/CTAPIManager.h> #include "utility/logger.h" int main(int argc,char **argv) { logger log("",log_to_CONSOLE); try { CTAPIManager cardMgr(&std::cout); cardMgr.setLogging(&log); for(uint i = 0;i < cardMgr.getReaderCount();i++) { std::cout << cardMg...
kaidokert/old-esteid-stack
src/qt-id-updater/idupdater.cpp
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
kaidokert/old-esteid-stack
src/windows/esteidcsp/Csp_Hash.cpp
/*! \file Csp_Hash.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "Csp.h" BOOL Csp::CPCreateHash( IN HCRYPTPROV hProv, IN ALG_ID Algid, IN HCRYPTKEY hKey, IN DWORD dwFlags, OUT HCRYPTHASH *phHash){ ...
kaidokert/old-esteid-stack
src/tests/testdownload.cpp
<reponame>kaidokert/old-esteid-stack #include "precompiled.h" #include <iostream> #include <fstream> #include "utility/netObj.h" using std::string; typedef std::vector<unsigned char> ByteVec; void getPassword(void *ptr,std::string prompt,int maxinput,std::string &pin) { std::cout << "prompt:" << prompt ; std::cin >...
kaidokert/old-esteid-stack
src/esteidutil/CertificateDialog.cpp
<gh_stars>0 /*! \file CertificateDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "CertificateDialog.h" #include "utility/asnCertificate.h" #include "wx/mstream.h" #include <wx/image.h> typedef std::vector<unsign...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEIDToken.cpp
<filename>src/macosx/EstEID.tokend/EstEID/EstEIDToken.cpp /* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1...
kaidokert/old-esteid-stack
src/windows/idutil2/idutil2/WorkerClass.cpp
#include "precompiled.h" #include "WorkerClass.h" #include "cardlib/PCSCManager.h" #include "cardlib/EstEidCard.h" #include <vector> using std::vector; struct WorkerPriv { PCSCManager mgr; vector<bool> cardPresent; int readerCount; CWindow *win; }; WorkerClass::WorkerClass(CWindow *parent) : pimpl(new WorkerPriv)...
kaidokert/old-esteid-stack
src/tests/testreadcardid.cpp
#include "precompiled.h" #include <iostream> #include <smartcard++/PCSCManager.h> #include <smartcard++/esteid/EstEidCard.h> #include "utility/logger.h" int main(int argc,char **argv) { logger log("",log_to_CONSOLE); try { PCSCManager cardMgr; cardMgr.setLogging(&log); for(uint i = 0;i < cardMgr.getReaderCount()...
kaidokert/old-esteid-stack
src/windows/esteidcsp/Csp.cpp
<filename>src/windows/esteidcsp/Csp.cpp<gh_stars>0 /*! \file Csp.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "Csp.h" #include "RegKey.h" #include "CSPTypes.h" #include "utility.h" #ifndef PP_USER_CERTSTORE //n...
kaidokert/old-esteid-stack
src/windows/esteidcsp/csp_c_exports.cpp
/*! \file csp_c_exports.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "Csp.h" extern Csp *csp; extern "C" { CSP_API HRESULT DllUnregisterServer(void) { return csp->DllUnregisterServer(); } CSP_API HRESULT Dl...
kaidokert/old-esteid-stack
src/qt-id-updater/main.cpp
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
kaidokert/old-esteid-stack
src/esteidutil/MainDialog_Image.cpp
<filename>src/esteidutil/MainDialog_Image.cpp<gh_stars>0 /*! \file MainDialog_Image.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include "AppSetting.h" #include <smartcard++/PCSCManager.h> #include <s...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/SmartCardCertificate.cpp
/* * EstEIDSigningPluginBHO * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
kaidokert/old-esteid-stack
src/esteidutil/PersonalDataDialog.cpp
<filename>src/esteidutil/PersonalDataDialog.cpp /*! \file PersonalDataDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "PersonalDataDialog.h" #include <fstream> #ifndef _WIN32 //this is ugly, but because XPM is s...
kaidokert/old-esteid-stack
src/esteidutil/MainDialog_Windows.cpp
/*! \file MainDialog_Windows.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include "AppSetting.h" #include <smartcard++/PCSCManager.h> #include <smartcard++/esteid/EstEidCard.h> #include <wx/filena...
kaidokert/old-esteid-stack
smartcard++/types.cpp
/*! \file types.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" std::ostream& operator<<(std::ostream &out,const ByteVec &vec) { out << "[ "; for(ByteVec::const_iterator i = vec.begin();i!=vec.end();i++) out << st...
kaidokert/old-esteid-stack
smartcard++/esteid/EstEidCardMaintainer.cpp
/*! \file EstEidCardMaintainer.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/esteid/EstEidCardMaintainer.h> void EstEidCardMaintainer::performGenerateNewKeys() { card.readCardID(); card.selectEF(Es...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEIDError.cpp
<filename>src/macosx/EstEID.tokend/EstEID/EstEIDError.cpp /* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1...
kaidokert/old-esteid-stack
src/esteidutil/DiagnosticsDialog.cpp
<filename>src/esteidutil/DiagnosticsDialog.cpp /*! \file DiagnosticsDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "DiagnosticsDialog.h" #include "MainDialog.h" #include <smartcard++/PCSCManager.h> #include <sma...
kaidokert/old-esteid-stack
src/windows/csp_tool/pkicommon/helpers.cpp
<filename>src/windows/csp_tool/pkicommon/helpers.cpp #include "precompiled.h" #include "helpers.h" void hresultError::check(HRESULT err,const char*p) { if (FAILED(err)) throw hresultError(err,p); } string WstrToStr(const wstring& iwstr) { string str; for(wstring::const_iterator it = iwstr.begin(); it != iwstr...
kaidokert/old-esteid-stack
src/windows/EstEIDSigningPluginBHO/SmartCardSigner.cpp
/* * EstEIDSigningPluginBHO * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ve...
kaidokert/old-esteid-stack
src/esteidutil/AppSetting.cpp
/*! \file AppSetting.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "AppSetting.h" #include <wx/settings.h> AppSetting::AppSetting(void) { config = new wxConfig(_T("EsteidUtil")); } AppSetting::~AppSetting(void) { ...
kaidokert/old-esteid-stack
src/windows/esteidcsp/Csp_Key.cpp
/*! \file Csp_Key.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "Csp.h" #pragma comment(lib,"crypt32") BOOL Csp::CPGetUserKey( IN HCRYPTPROV hProv, IN DWORD dwKeySpec, OUT HCRYPTKEY *phUserKey){ DECL_RE...
kaidokert/old-esteid-stack
src/windows/esteidcsp/CspEstEid.cpp
/*! \file CspEstEid.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "CspEstEid.h" #include <smartcard++/esteid/EstEidCard.h> #include <smartcard++/SmartCardManager.h> #include <utility/pinDialog.h> #include <utili...
kaidokert/old-esteid-stack
smartcard++/DynamicLibrary.cpp
<gh_stars>0 /*! \file DynamicLibrary.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/DynamicLibrary.h> #include <string.h> DynamicLibrary::DynamicLibrary(const char *dllName) : name(dllName),m_pathHint("...
kaidokert/old-esteid-stack
src/esteidpkcs11/PKCS11Context.cpp
<reponame>kaidokert/old-esteid-stack #include "precompiled.h" #include "PKCS11Context.h" #include <smartcard++/PCSCManager.h> #include <smartcard++/helperMacro.h> #include <smartcard++/esteid/EstEidCard.h> #include <utility/asnCertificate.h> #include <utility/logger.h> #include <string.h> #undef min enum ObjID { OB...
kaidokert/old-esteid-stack
src/tests/testsign.cpp
<reponame>kaidokert/old-esteid-stack #include "precompiled.h" #include <iostream> #include <smartcard++/SmartCardManager.h> #include <smartcard++/esteid/EstEidCard.h> #include <smartcard++/helperMacro.h> #include "utility/logger.h" int main(int argc,char **argv) { logger log("",log_to_CONSOLE); try { SmartCardManag...
kaidokert/old-esteid-stack
src/esteidutil/PinChangeSecureDialog.cpp
/*! \file PinChangeDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "PinChangeDialog.h" //pull in PINOPS #include "PinChangeSecureDialog.h" enum { idChoiceOld, idChoiceNew }; BEGIN_EVENT_TABLE(PinChangeSec...
kaidokert/old-esteid-stack
src/esteidutil/MainDialog.cpp
<reponame>kaidokert/old-esteid-stack /*! \file MainDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include "AppSetting.h" #include "wx/menu.h" #include "wx/mstream.h" #if wxCHECK_VERSION(2,8,0) #i...
kaidokert/old-esteid-stack
smartcard++/SCError.cpp
/*! \file SCError.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/SCError.h> SCError::SCError(long err) : runtime_error("smart card API error"),error(err) { std::ostringstream buf; switch(err) { ca...
kaidokert/old-esteid-stack
src/windows/idutil2/idutil2/card.cpp
<reponame>kaidokert/old-esteid-stack // card.cpp : Implementation of Ccard #include "precompiled.h" #include "card.h" #include <comdef.h> #include <comutil.h> //for _bstr_t #include <atlsafe.h> //bring in CComSafeArray #include "cardlib/PCSCManager.h" #include "cardlib/EstEidCard.h" // Ccard STDMETHODIMP Ccard::Inte...
kaidokert/old-esteid-stack
src/windows/SmartCardRemoval/precompiled.cpp
// SmartCardRemoval.pch will be the pre-compiled header #include "precompiled.h"
kaidokert/old-esteid-stack
src/windows/csp_tool/csp_tool.cpp
// testac.cpp : Defines the entry point for the console application. // #include "precompiled.h" #include <windows.h> #include <wincrypt.h> #ifdef ATL #include <atlbase.h> #include <atlcrypt.h> #include <atlstr.h> #endif #include "cryptContext.h" #include "helpers.h" #include <stdlib.h> #include <iostr...
kaidokert/old-esteid-stack
src/utility/monitorThread.cpp
/*! \file monitorThread.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "monitorThread.h" #include <smartcard++/SmartCardManager.h> #include <smartcard++/esteid/EstEidCard.h> #include <iostream> struct checker { ...
kaidokert/old-esteid-stack
smartcard++/sim/SIMCard.cpp
<filename>smartcard++/sim/SIMCard.cpp<gh_stars>0 #include "precompiled.h" #include <smartcard++/sim/SIMCard.h> SIMCard::SIMCard(ManagerInterface &ref) : CardBase(ref) {} SIMCard::~SIMCard(void) {} bool SIMCard::isInReader(unsigned int /*idx*/) { //select MF, try reading DATAFILE_GSM ? return false; } std::string...
kaidokert/old-esteid-stack
src/qt-id-updater/ProcessStarter.cpp
/* * qt-id-updater * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
kaidokert/old-esteid-stack
src/utility/asnObject.cpp
<gh_stars>0 /*! \file asnObject.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "asnObject.h" asnObject::asnObject(byteVec &in,std::ostream &pout):byteVec(in),tab(0),bout(pout) {init();} asnObject::asnObject(byteI...
kaidokert/old-esteid-stack
src/macosx/EstEID.tokend/EstEID/EstEIDKeyHandle.cpp
/* * EstEID.tokend * * Copyright (C) 2009 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * ...
kaidokert/old-esteid-stack
src/utility/winInetObj.cpp
/*! \file winInetObj.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "netObj.h" #include "winInetObj.h" #ifdef _WIN32 using std::string; using std::vector; struct inetGenericRequest { virtual operator HINTERNET() c...
kaidokert/old-esteid-stack
src/esteidutil/MainDialog_Pin.cpp
<gh_stars>0 /*! \file MainDialog_Pin.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "MainDialog.h" #include "AppSetting.h" #include "PinChangeDialog.h" #include "PinChangeSecureDialog.h" #include <smartcard++/este...
kaidokert/old-esteid-stack
src/windows/esteidcm/esteidcm.cpp
<gh_stars>0 // esteidcm.cpp : Defines the entry point for the DLL application. // #include "precompiled.h" #include "esteidcm.h" #include "smartcard++/esteid/EstEidCard.h" #include "smartcard++/PCSCManager.h" #include "smartcard++/SCError.h" #include <algorithm> #include <stdlib.h> #include <crtdbg.h> #in...
kaidokert/old-esteid-stack
src/utility/logger.cpp
<reponame>kaidokert/old-esteid-stack<filename>src/utility/logger.cpp<gh_stars>0 /*! \file logger.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <fstream> #include <iostream> #include "logger.h" class file_log_target ...
kaidokert/old-esteid-stack
src/windows/esteidcsp/CSPErrors.cpp
#include "precompiled.h" #include "CSPErrors.h"
kaidokert/old-esteid-stack
src/utility/converters.cpp
<reponame>kaidokert/old-esteid-stack /*! \file converters.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <algorithm> typedef std::vector<unsigned char> ByteVec; std::string toHex(const std::vector<unsigned char> &by...
kaidokert/old-esteid-stack
src/utility/pinDialog.cpp
<filename>src/utility/pinDialog.cpp /*! \file pinDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "pinDialog.h" #include "threadObj.h" #ifdef _WIN32 #include <windows.h> #include <crtdbg.h> struct iconHandle { ...
kaidokert/old-esteid-stack
smartcard++/PCSCManager.cpp
/*! \file PCSCManager.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include <smartcard++/PCSCManager.h> #include <smartcard++/SCError.h> #ifdef _WIN32 #define LIBNAME "winscard" #define SUFFIX "A" #else #if defined(__APPLE__...
kaidokert/old-esteid-stack
src/esteidutil/PinChangeDialog.cpp
<reponame>kaidokert/old-esteid-stack<gh_stars>0 /*! \file PinChangeDialog.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "PinChangeDialog.h" #define ControlWidth 170 enum { idInput1, idInput2, idInput3 }; BEG...
kaidokert/old-esteid-stack
src/windows/esteidcsp/esteidcsp.cpp
<filename>src/windows/esteidcsp/esteidcsp.cpp<gh_stars>0 /*! \file esteidcsp.cpp \copyright (c) <NAME> ( <EMAIL> ) \licence BSD \author $Author$ \date $Date$ */ // Revision $Revision$ #include "precompiled.h" #include "Setup.h" #include "CSPEstEid.h" #ifdef _MANAGED #pragma managed(push, off) #endif #if d...
kaidokert/old-esteid-stack
src/tests/testlogger.cpp
<reponame>kaidokert/old-esteid-stack #include <smartcard++/common.h> #include <smartcard++/helperMacro.h> #include "utility/logger.h" #include <iostream> using std::endl; int main(int argc,char **argv) { unsigned char bytebuf[] = {0x01,0x02,0xDE,0xAD}; ByteVec buffer(MAKEVECTOR(bytebuf)); logger buf; std::cout ...
kaidokert/old-esteid-stack
src/tests/testmonitorthread.cpp
#include "precompiled.h" #include <iostream> #include <string> #include "utility/monitorThread.h" struct testFix : public monitorObserver { void onEvent(monitorEvent eType,int param) { std::string event; switch(eType) { case CARD_INSERTED:event="cardInserted";break; case CAR...
subwai/win32-displayconfig
win32-displayconfig.cc
<reponame>subwai/win32-displayconfig /* * win32-displayconfig.cc: part of the "win32-displayconfig" Node package. * See the COPYRIGHT file at the top-level directory of this distribution. */ #define NAPI_VERSION 4 #include <napi.h> #include <string.h> #include <windows.h> #include <atomic> #include <memory> #includ...
Aakriti05/ORCA_Astar-warehouse-navigation
examples/Blocks.cpp
<filename>examples/Blocks.cpp /* * Blocks.cpp * RVO2 Library * * Copyright 2008 University of North Carolina at Chapel Hill * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
Aakriti05/ORCA_Astar-warehouse-navigation
examples/obs_avoidance_berlin.cpp
/* * Blocks.cpp * RVO2 Library * * Copyright 2008 University of North Carolina at Chapel Hill * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
yangke1120/AoE
Android/aoe/extensions/aoes/src/main/cpp/aoes/aoe_security.cpp
<gh_stars>1-10 #include <aoe_security.h> #include "aoes.h" #ifdef __cplusplus extern "C" { #endif JNIEXPORT jbyteArray JNICALL Java_com_didi_aoe_extensions_aoes_AoeSecurity_encrypt(JNIEnv *env, jclass type, jbyteArray src, jint srcLength) { if (srcLength <= 0 || NULL == src) { return NULL; } jby...
giladreich/CMakeLogger
main.cpp
<reponame>giladreich/CMakeLogger #include <stdio.h> int main() { printf("Hello CMakeLogger\n"); return 0; }
KnollFrank/CarND-Path-Planning-Project
src/main.cpp
<gh_stars>0 #include "json.hpp" #include <gtest/gtest.h> #include <stddef.h> #include <uWS/HTTPSocket.h> #include <uWS/Hub.h> #include <uWS/WebSocket.h> #include <uWS/WebSocketProtocol.h> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <string> #include <vector> #include <tuple> #incl...
cloudoptim/api
node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/win32/kerberos.cc
#include "kerberos.h" #include <stdlib.h> #include <tchar.h> #include "base64.h" #include "wrappers/security_buffer.h" #include "wrappers/security_buffer_descriptor.h" #include "wrappers/security_context.h" #include "wrappers/security_credentials.h" Persistent<FunctionTemplate> Kerberos::constructor_template;...
cloudoptim/api
node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/lib/kerberos.cc
#include "kerberos.h" #include <stdlib.h> #include <errno.h> #include "worker.h" #include "kerberos_context.h" #ifndef ARRAY_SIZE # define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0])) #endif void die(const char *message) { if(errno) { perror(message); } else { printf("ERROR: %s\n", message);...
Fossegrimen/advent-of-code
day25a.cpp
#include <iostream> int main() { uint64_t pKey1; uint64_t pKey2; std::cin >> pKey1; std::cin >> pKey2; uint64_t sKey1 = 7; uint64_t sKey2 = pKey2; uint64_t tmp1 = 1; uint64_t tmp2 = 1; for (size_t i = 1; i < 10000000; i++) { tmp1 *= sKey1; tmp2 *= sKey2; ...
Fossegrimen/advent-of-code
day21a.cpp
<filename>day21a.cpp #include <iostream> #include <numeric> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include <vector> typedef std::unordered_map<std::string, size_t> IndexMap; typedef std::unordered_set<size_t> IndexSet; typedef std::vector<std::vector<size_t>> Matrix; t...
Fossegrimen/advent-of-code
day08b.cpp
#include <algorithm> #include <iostream> #include <string> #include <vector> enum class Opcode { ACC, JMP, NOP }; class Instruction { private: Opcode opcode; ssize_t value; public: Instruction(Opcode opcode, ssize_t value) : opcode ( opcode ), value ( value ){}; Opcode getOpcode() cons...
Fossegrimen/advent-of-code
day09a.cpp
#include <iostream> #include <vector> typedef std::vector<uint64_t> PreambleList; uint64_t getBadPreamble(const PreambleList& preambleList); int main() { PreambleList preambleList; uint64_t preamble; while (std::cin >> preamble) { preambleList.push_back(preamble); } const uint64_t ...
Fossegrimen/advent-of-code
day07b.cpp
#include <iostream> #include <string> #include <unordered_map> typedef std::unordered_map<std::string, size_t> BagRuleMap; typedef std::unordered_map<std::string, BagRuleMap> BagRulesMap; void fillBagRulesMap(BagRulesMap& bagRulesMap); void trimString(std::string& line); size_t countBags(BagRulesMap& bagRulesMap...
Fossegrimen/advent-of-code
day24b.cpp
<reponame>Fossegrimen/advent-of-code<filename>day24b.cpp #include <iostream> #include <numeric> #include <sstream> #include <vector> #define MAX_ROUNDS 100 #define MAX_WIDTH 60 #define MAX_R (MAX_WIDTH + (2 * MAX_ROUNDS) + 1) #define MAX_Q MAX_R #define ORIGO_R ((MAX_WIDTH / 2) + MAX_ROUNDS) #define ORIGO_Q ORIGO_R...
Fossegrimen/advent-of-code
day04b.cpp
#include <iostream> #include <regex> #include <sstream> #include <string> #include <unordered_map> typedef std::unordered_map<std::string, std::string> Passport; bool isValidPassport(Passport& passport); int main() { Passport passport; size_t valid = 0; std::string line; while (std::getline...
Fossegrimen/advent-of-code
day16b.cpp
#include <algorithm> #include <iostream> #include <regex> #include <sstream> #include <string> #include <vector> typedef std::vector<size_t> Ticket; typedef std::vector<std::vector<size_t>> Rules; typedef std::vector<std::vector<size_t>> Tickets; void readRules(Rules& rules); void readOwnTicket(Ticket& ticket); void...
Fossegrimen/advent-of-code
day13b.cpp
#include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> typedef std::vector<int64_t> Vector; int64_t chineseRemainderTheorem(const Vector n, const Vector a); int64_t modularInverse(const int64_t a, const int64_t n); int main() { Vector aList; Vector nList; std::s...
Fossegrimen/advent-of-code
day10b.cpp
<reponame>Fossegrimen/advent-of-code #include <algorithm> #include <iostream> #include <unordered_map> #include <vector> typedef std::unordered_map<size_t, uint64_t> AdapterMap; typedef std::vector<size_t> joltageRatingList; uint64_t findPossibilities(AdapterMap& adapterMap, const joltageRatingList& joltageRatings, ...
Fossegrimen/advent-of-code
day11a.cpp
#include <algorithm> #include <iostream> #include <string> #include <vector> typedef std::vector<std::vector<char>> SeatMatrix; size_t getOccupiedAdjacentSeats(const SeatMatrix& seatMatrix, const size_t y, const size_t x); bool isOccupied(const SeatMatrix& seatMatrix, const ssize_t y, const ssize_t x); int main()...
Fossegrimen/advent-of-code
day01b.cpp
<reponame>Fossegrimen/advent-of-code #include <iostream> #include <vector> typedef std::vector<size_t> Vector; int main() { Vector expenses; size_t expense = 0; while (std::cin >> expense) { expenses.push_back(expense); } for (size_t i = 0; i < expenses.size(); i++) { fo...
Fossegrimen/advent-of-code
day06b.cpp
#include <iostream> #include <string> #include <unordered_map> typedef std::unordered_map<char, size_t> CharMap; size_t countAnswers(CharMap& charMap, size_t people); int main() { CharMap charMap; size_t sum = 0; size_t people = 0; std::string line; while (std::getline(std::cin...
Fossegrimen/advent-of-code
day20a.cpp
<reponame>Fossegrimen/advent-of-code #include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> enum Side { Left = 0, Right = 1, Upper = 2, Lower = 3 }; class Tile; class TileHandler; typedef std::vector<Tile*> TileTranslations; typedef std::vector<std...
Fossegrimen/advent-of-code
day09b.cpp
#include <algorithm> #include <iostream> #include <limits> #include <vector> typedef std::vector<uint64_t> PreambleList; uint64_t getBadPreamble(const PreambleList& preambleList); int main() { PreambleList preambleList; uint64_t preamble; while (std::cin >> preamble) { preambleList.push...
Fossegrimen/advent-of-code
day02a.cpp
<filename>day02a.cpp<gh_stars>0 #include <algorithm> #include <iostream> #include <string> int main() { size_t valid = 0; char tempChar; size_t min; size_t max; char character; std::string password; while (std::cin >> min && std::cin >> tempChar && ...
Fossegrimen/advent-of-code
day14b.cpp
#include <iostream> #include <string> #include <unordered_map> #include <vector> typedef std::unordered_map<uint64_t, uint64_t> MemoryMap; typedef std::vector<uint64_t> Addresses; const Addresses getAddresses(const std::string mask, uint64_t address); const Addresses getAddressPossibilities(std::string mask, const u...
Fossegrimen/advent-of-code
day03b.cpp
#include <iostream> #include <string> #include <vector> typedef std::vector<std::string> Matrix; int main() { Matrix map; std::string line; while (std::cin >> line) { map.push_back(line); } const size_t width = map[0].size(); const size_t height = map.size(); const std::ve...
Fossegrimen/advent-of-code
day17b.cpp
#include <algorithm> #include <iostream> #include <string> #include <vector> #define MAX_ROUNDS 6 #define MAX_WIDTH 8 #define MAX_W ((2 * MAX_ROUNDS) + 1) #define MAX_Z MAX_W #define MAX_Y (MAX_WIDTH + (2 * MAX_ROUNDS) + 1) #define MAX_X MAX_Y #define ORIGO_W MAX_ROUNDS #define ORIGO_Z MAX_ROUNDS #define ORIGO_Y ((...