Cisco WVC210 Reference Manual page 51

Network camera exported cgi commands
Hide thumbs Also See for WVC210:
Table of Contents

Advertisement

Admin-Level CGI Commands
Example: Base-64 Encoder/Decoder Sample Codes
Cisco Small Business Network Camera Exported CGI Commands
}
o_buf[j++] = keyStr[enc1];
o_buf[j++] = keyStr[enc2];
o_buf[j++] = keyStr[enc3];
o_buf[j++] = keyStr[enc4];
// OK, now clean out the variables used.
chr1 = chr2 = chr3 = (char)0;
enc1 = enc2 = enc3 = enc4 = (char)0;
} while (i < strlen(i_buf)); //And finish off the loop
//Now return the encoded values.
return j;
}
//--------------------------------------------------------
//
Description:
//
Input:
//
//
Output:
//
//
Return:
//
//--------------------------------------------------------
int decode64(char i_buf[], char o_buf[]) {
//These are the 3 bytes to be encoded
char chr1 = (char)0;
char chr2 = (char)0;
char chr3 = (char)0;
//These are the 4 encoded bytes
decrypt the input data with the base64
char i_buf[]- input buffer
char o_buf[]- output buffer
decrypted string length
3
46

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wvc2300Pvc2300

Table of Contents