-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13012 from ggovi/conddbV2-remove-V1-deps-3
- Loading branch information
Showing
342 changed files
with
1,178 additions
and
15,746 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<use name="CondFormats/BeamSpotObjects"/> | ||
<use name="CondFormats/DataRecord"/> | ||
<use name="CondCore/DBCommon"/> | ||
<use name="FWCore/PluginManager"/> | ||
<use name="CondCore/ESSources"/> | ||
<flags EDM_PLUGIN="1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#ifndef CondCore_CondDB_Auth_h | ||
#define CondCore_CondDB_Auth_h | ||
|
||
#include <string> | ||
|
||
namespace cond{ | ||
|
||
namespace auth { | ||
|
||
static constexpr const char* const COND_AUTH_PATH = "COND_AUTH_PATH"; | ||
static constexpr const char* const COND_AUTH_SYS = "COND_AUTH_SYS"; | ||
|
||
static constexpr const char* const COND_ADMIN_GROUP = "COND_ADMIN_GROUP"; | ||
|
||
static constexpr const char* const COND_DEFAULT_ROLE = "COND_DEFAULT_ROLE"; | ||
static constexpr const char* const COND_WRITER_ROLE = "COND_WRITER_ROLE"; | ||
static constexpr const char* const COND_READER_ROLE = "COND_READER_ROLE"; | ||
static constexpr const char* const COND_ADMIN_ROLE = "COND_ADMIN_ROLE"; | ||
|
||
static constexpr const char* const COND_DEFAULT_PRINCIPAL = "COND_DEFAULT_PRINCIPAL"; | ||
|
||
static constexpr const char* const COND_KEY = "Memento"; | ||
|
||
static constexpr unsigned int COND_AUTHENTICATION_KEY_SIZE = 30; | ||
static constexpr unsigned int COND_DB_KEY_SIZE = 30; | ||
|
||
static constexpr const char* const COND_AUTH_PATH_PROPERTY = "AuthenticationFile"; | ||
} | ||
|
||
} | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef CondCore_CondDB_Cipher_h | ||
#define CondCore_CondDB_Cipher_h | ||
|
||
#include <iostream> | ||
#include <string> | ||
|
||
struct BLOWFISH_CTX; | ||
|
||
namespace cond { | ||
|
||
namespace auth { | ||
|
||
class Cipher { | ||
public: | ||
|
||
explicit Cipher( const std::string& key ); | ||
|
||
~Cipher(); | ||
|
||
size_t encrypt( const std::string& input, unsigned char*& output ); | ||
|
||
std::string decrypt( const unsigned char* input, size_t inputSize ); | ||
|
||
std::string b64encrypt( const std::string& input ); | ||
|
||
std::string b64decrypt( const std::string& input ); | ||
|
||
private: | ||
|
||
size_t bf_process_alloc( const unsigned char* input, size_t input_size, unsigned char*& output, bool decrypt=false ); | ||
|
||
private: | ||
|
||
BLOWFISH_CTX* m_ctx; | ||
}; | ||
} | ||
|
||
} | ||
|
||
#endif // CondCore_CondDB_Cipher_h | ||
|
Oops, something went wrong.