Jeff Trawick
1ed95ad932
Fix invalid storage reference by apr_psprintf() when creating a string from salt[]. salt[] is not '\0'-terminated, so apr_psprintf() needs to be told the extent of the bytes to read.
...
It is easy to test old/new code standalone with valgrind;
jst insert the getkey() function into this template:
-----------getkey() goes here-----------------
int main(void)
{
apr_pool_t *p;
apr_initialize();
apr_pool_create(&p, NULL);
printf("%s\n", getkey(p));
return 0;
}
2015-03-26 08:55:54 -07:00
Felipe Zimmerle
385a2828e8
Code cosmetics: Reduces the amounts of warning.
...
Removes the warnings by adding missing headers and removed unused variables.
2014-03-31 16:22:11 -07:00
Felipe Zimmerle
1e63e49db4
Uses %zu to print size_t instead of %d.
...
This will help to reduce the amount of warnings during the compilation
See #631 for further information.
2014-03-31 16:22:11 -07:00
Breno Silva
464ac1ecac
Fix crash when use SessionID as paramenter in SecHashKey
2013-07-17 08:51:31 -07:00
Breno Silva
5cf5ff043a
Fixed: flush libxml2 output buffer
2013-06-04 19:58:36 -07:00
Breno Silva
df0b048254
Setting crypt outpur buffer as libxml2 output size
2013-06-04 11:02:44 -07:00
Breno Silva
9517c3475d
Fixed: URL normalization for SecHashEngine
2013-06-04 10:59:00 -07:00
Breno Silva
aa18ec7f45
Updated copyright dates
2013-04-19 03:20:46 -04:00
Greg Wroblewski
f14eaeb3d0
Fixed build on Apache 2.4.
2012-11-06 14:33:06 -08:00
Breno Silva
451041cd8c
Change names of HMAC feature to HASH
2012-10-30 18:19:11 -04:00
Breno Silva
53d422e9de
Change names of HMAC feature to HASH
2012-10-30 18:02:22 -04:00
brenosilva
a27e3a901d
Removed prng() function and added apr_generate_random_bytes
2012-10-18 18:57:06 +00:00
brenosilva
8aa17b5469
Removed prng() function and added apr_generate_random_bytes
2012-10-18 18:53:10 +00:00
brenosilva
ee31c5ba9f
Fix LibXml2.9.0 issue
2012-10-18 17:10:12 +00:00
brenosilva
a9266d4ca1
Updated getkey function
2012-10-18 17:02:09 +00:00
brenosilva
8d5131a186
Fixed some dereferenced pointers
2012-08-16 18:26:20 +00:00
brenosilva
c24eaec77a
Fixed unused error_msg in msc_crypt
2012-08-16 12:32:08 +00:00
brenosilva
8cec8c7e6d
Make internal m_strcasestr default
2012-08-15 16:08:02 +00:00
brenosilva
592ec392d1
Remove ctl:ruleUpdateTarget* and add ctl:ruleRemovetarget*
2012-08-02 18:04:53 +00:00
brenosilva
3bb931e188
Fix warnings
2012-06-17 13:32:07 +00:00
brenosilva
22e20c6997
Fix windows error compilation
2012-06-15 20:27:21 +00:00
brenosilva
4ab785c192
Fix PRNG code and windows compilation errors
2012-06-15 19:27:59 +00:00
brenosilva
575356f10c
Fix PRNG code
2012-06-15 17:06:10 +00:00
brenosilva
4ef3cc8eba
Improve random number generator
2012-06-15 16:56:50 +00:00
brenosilva
f72ba4d36f
Improve random number generator
2012-06-15 13:15:51 +00:00
brenosilva
39fcad4566
Improve random number generator
2012-06-15 12:43:29 +00:00
brenosilva
563017fce6
Fix loop into getkey
2012-06-15 12:13:32 +00:00
brenosilva
f162409851
Added null pointer check
2012-06-06 12:22:44 +00:00
brenosilva
866cb6d6b4
Update trunk for 2.7
2012-05-10 23:18:39 +00:00