posix.cfg: Added support for encrypt()
This commit is contained in:
parent
7df6ba419e
commit
24a71144f6
|
@ -1729,6 +1729,20 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
</arg>
|
||||
<warn severity="style" reason="Obsolescent" alternatives="utimensat"/>
|
||||
</function>
|
||||
<!-- https://man7.org/linux/man-pages/man3/encrypt.3.html -->
|
||||
<!-- void encrypt(char block[64], int edflag);-->
|
||||
<function name="encrypt">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-null/>
|
||||
<minsize type="value" value="64" baseType="char"/>
|
||||
</arg>
|
||||
<arg nr="2" direction="in">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int futimens(int fd, const struct timespec times[2]);-->
|
||||
<function name="futimens">
|
||||
<noreturn>false</noreturn>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <netdb.h>
|
||||
#include <regex.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#include <syslog.h>
|
||||
#include <stdarg.h>
|
||||
|
@ -32,10 +31,18 @@
|
|||
#include <stdbool.h>
|
||||
#include <mqueue.h>
|
||||
#define _XOPEN_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <wchar.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
|
||||
void nullPointer_encrypt(char block[64], int edflag)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
encrypt(NULL, edflag);
|
||||
encrypt(block, edflag);
|
||||
}
|
||||
|
||||
int nullPointer_getopt(int argc, char* const argv[], const char* optstring)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
|
|
Loading…
Reference in New Issue