Thanks @jhon.c
This code is working, one change I made to the encrypt command to use sha256 digest.
openssl aes-256-cbc -in plaintext_file.txt -out encrypted_file.enc -md sha256 -pass...
Type: Posts; User: vlrk
Thanks @jhon.c
This code is working, one change I made to the encrypt command to use sha256 digest.
openssl aes-256-cbc -in plaintext_file.txt -out encrypted_file.enc -md sha256 -pass...
@john.c,
thanks for inputs.
I changed the code as you suggested , still it does not gives out the valid decrypted data.
Not sure , still what I am missing.
I am updating my latest code in...
Hi Team,
I am trying to use openssl API's for decryption of the key file with password given as argument.
CLI commands which work fine are as below.
Below is encode plain text file into...
continuing on the same.
My goal is to set some capabilities to process dynamically and then using setuid and setgid go to non root.
So that some of the capabilities can be still there to the...
if (cap_get_flag(caps, CAP_NET_ADMIN, CAP_EFFECTIVE, &flag_value) == -1) {
perror("cap_get_flag");
return 1;
}
above one works fine.
I changed to 3 , still it's same result.
But on the first hand it should have been 3 only , as the number of capabilities want to give set should be mentioned here.
Hi ,
I am trying out simple example for cap_get_flag.
setting some capability and in next line try to get the same .
some how it is giving a error.
Not able to know, what exactly missing...
Thanks salem,
Below is the nm and file related output.
[labuser@141179 lib]$ nm libc.so.6 | grep index
000f0e30 t decrement_at_index.part.0
000ea7c0 t __GI___if_freenameindex
000ea7c0 t...
Hi Team,
We are using arm board of i686 arch .
I got valgrind cross compiled using the arm toolchain of i386 ( vendor given).
We observe for two of the packages could able to run with...
Hi Team,
Want to the merits/demerits/risks in using the string literals which are being passed as argument to other routines.
This string lietrals are directly assigned to the character pointer...
Close the thread , Issue identified.
The addr_path has invalid values, after putting correct path it got resolved.
Hi All,
I have socket bind failing, below are details.
In one of my embedded box which is running with 4.19.183 linux kernal.
Opening a PF_UNIX , SOCK_DGRAM socket and giving addr.sun_family...
thanks stahta01 ..I reffered this post previous , I guess he also face same issue as what I am observing.
In between can any one give exact difference between cap_set_flag and capset .
One...
Hi All,
I am having tcp server , which is running with non root user.
Trying to set the QOS on the accepted socket.
Currently it returns Permission Error as errno "Error:Operation not...
Thanks for the reply.
Hi ,
I am doing one sample program with function pointer.
Missing part for me is how bags array first index is getting replaced .
Line number 10 calls function next , but how come value...
May be this one more suits to the linux related forum than a c programming message boards.
I made two changes to remove the errors .
Why size is being taken from the user , what purpose it is serving..?
#include<stdio.h>
int main(void)
{
I see it's working in linux environment.
I made one change of commenting all except addition, to run with out compilation issue.
Also you make use of return even in main().
Though main can...
Hi ,
In below code i want to the evaluation of expression.
I am trying to know like , when will x be incremented and y will be incremented and on what basis.
#include <stdio.h>
I am trying to upgrade openssl package for one my target board package .
This is legacy code . It has already shared objects of previous version openssl-1.0.1t .Here i am trying to upgrade openssl...
I am using httpd-2.2.31 , trying to use openssl-1.0.2t with --with-ssl and --enable-ssl parameter.
--with-ssl points to the openssl installed directory.
I am having redhat 5.7 with x86_64 ...
Hi All ,
I have below program , which finds out whether the given linked list is circular linked list or not.
Int containsLoop (listptr head)
{
Listptr *ptr1, *ptr2;
Hi ,
I am trying to understand the usage of double points in c programming.
I was following one of the response related here...
Thanks salem,
One more query on subject int32_t . I have two machines with different gcc versions.
When i include this data type in my program and try to compile i see that it depends on...