• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

polserver / polserver / 25918451630

15 May 2026 12:43PM UTC coverage: 60.929% (+2.1%) from 58.859%
25918451630

push

github

turleypol
added dynamic property which returns a pointer of the object instead of
a copy like the current imp.
needed to be able to eg store a vector

43 of 61 new or added lines in 2 files covered. (70.49%)

14455 existing lines in 345 files now uncovered.

44695 of 73356 relevant lines covered (60.93%)

449621.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.69
/pol-core/pol/crypt/cryptengine.cpp
1
/** @file
2
 *
3
 * @par History
4
 */
5

6

7
#include "cryptengine.h"
8

9
#include "../../clib/logfacility.h"
10
#include "crypt.h"
11
#include "cryptkey.h"
12

13

14
namespace Pol::Crypt
15
{
16
CCryptBase* create_nocrypt_engine()
4✔
17
{
18
  return new CCryptNoCrypt();
4✔
19
}
20

UNCOV
21
CCryptBase* create_crypt_old_blowfish_engine( unsigned int uiKey1, unsigned int uiKey2 )
×
22
{
UNCOV
23
  return new CCryptBlowfishOld( uiKey1, uiKey2 );
×
24
}
25

UNCOV
26
CCryptBase* create_crypt_1_25_36_engine( unsigned int uiKey1, unsigned int uiKey2 )
×
27
{
UNCOV
28
  return new CCrypt12536( uiKey1, uiKey2 );
×
29
}
30

UNCOV
31
CCryptBase* create_crypt_blowfish_engine( unsigned int uiKey1, unsigned int uiKey2 )
×
32
{
UNCOV
33
  return new CCryptBlowfish( uiKey1, uiKey2 );
×
34
}
35

UNCOV
36
CCryptBase* create_crypt_twofish_engine( unsigned int uiKey1, unsigned int uiKey2 )
×
37
{
UNCOV
38
  return new CCryptTwofish( uiKey1, uiKey2 );
×
39
}
40

UNCOV
41
CCryptBase* create_crypt_blowfish_twofish_engine( unsigned int uiKey1, unsigned int uiKey2 )
×
42
{
UNCOV
43
  return new CCryptBlowfishTwofish( uiKey1, uiKey2 );
×
44
}
45

46
CCryptBase* create_crypt_engine( TCryptInfo& infoCrypt )
4✔
47
{
48
  switch ( infoCrypt.eType )
4✔
49
  {
50
  case CRYPT_NOCRYPT:
4✔
51
    return create_nocrypt_engine();
4✔
UNCOV
52
  case CRYPT_OLD_BLOWFISH:
×
53
    return create_crypt_old_blowfish_engine( infoCrypt.uiKey1, infoCrypt.uiKey2 );
×
54
  case CRYPT_1_25_36:
×
55
    return create_crypt_1_25_36_engine( infoCrypt.uiKey1, infoCrypt.uiKey2 );
×
56
  case CRYPT_BLOWFISH:
×
57
    return create_crypt_blowfish_engine( infoCrypt.uiKey1, infoCrypt.uiKey2 );
×
58
  case CRYPT_TWOFISH:
×
59
    return create_crypt_twofish_engine( infoCrypt.uiKey1, infoCrypt.uiKey2 );
×
60
  case CRYPT_BLOWFISH_TWOFISH:
×
61
    return create_crypt_blowfish_twofish_engine( infoCrypt.uiKey1, infoCrypt.uiKey2 );
×
62
  default:
×
63
    POLLOG_ERRORLN( "Unknown ClientEncryptionVersion, using Ignition encryption engine" );
×
64
    return create_nocrypt_engine();
×
65
  }
66
}
67
}  // namespace Pol::Crypt
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc