On Thu, Nov 04, 2010, fatma sarhan wrote: > Hi, > > I want to copy an x509_store variable in another one which have the same > type (x509_store). > is there a method like (memcpy in c++) which can copy from x509_store to > x509_store? Or, how we can define the size of the struct x509_store to use > the function memcpy(x509_stor * x, x509_store * y, int size-of-y) >
You can't just memcpy() one X509_STORE to another because it contains internal pointers to various structures too. Why do you need to copy it? There may be an alternative way to achieve what you want. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org