#include <stdio.h>#include <sys/socket.h>#include <stdlib.h>#include <netinet/in.h>#include <string.h>#include <netdb.h>#include <errno.h>#include <unistd.h>#include <fcntl.h>#include <sys/types.h>#include <openssl/sha.h> unsigned char *buff(const char *path){ int end = 0; unsigned char * buf; int f_write = open(path,O_RDONLY); end = lseek(f_write,0,SEEK_END); lseek(f_write,0,SEEK_SET); buf =(char*)malloc(sizeof(char*)*(end+1)); read(f_write,buf,end); close(f_write); buf[end+1]= ”; return buf;} int main(){ unsigned char *buffer1 = buff(“test.txt”); unsigned char b[900];
OR
OR