MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / getChallenge

Function getChallenge

wiringPi/drcNet.c:78–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 */
77
78static char *getChallenge (int fd)
79{
80 static char buf [512] ;
81 int num ;
82
83 for (;;)
84 {
85 if ((num = remoteReadline (fd, buf, 511)) < 0)
86 return NULL ;
87 buf [num] = 0 ;
88
89 if (strncmp (buf, "Challenge ", 10) == 0)
90 return &buf [10] ;
91 }
92}
93
94
95/*

Callers 1

authenticateFunction · 0.85

Calls 1

remoteReadlineFunction · 0.85

Tested by

no test coverage detected