Lines Matching refs:ptmp
158 X509_PURPOSE *ptmp; in X509_PURPOSE_add() local
168 if ((ptmp = OPENSSL_malloc(sizeof(*ptmp))) == NULL) { in X509_PURPOSE_add()
172 ptmp->flags = X509_PURPOSE_DYNAMIC; in X509_PURPOSE_add()
174 ptmp = X509_PURPOSE_get0(idx); in X509_PURPOSE_add()
177 if (ptmp->flags & X509_PURPOSE_DYNAMIC_NAME) { in X509_PURPOSE_add()
178 OPENSSL_free(ptmp->name); in X509_PURPOSE_add()
179 OPENSSL_free(ptmp->sname); in X509_PURPOSE_add()
182 ptmp->name = OPENSSL_strdup(name); in X509_PURPOSE_add()
183 ptmp->sname = OPENSSL_strdup(sname); in X509_PURPOSE_add()
184 if (ptmp->name == NULL|| ptmp->sname == NULL) { in X509_PURPOSE_add()
189 ptmp->flags &= X509_PURPOSE_DYNAMIC; in X509_PURPOSE_add()
191 ptmp->flags |= flags; in X509_PURPOSE_add()
193 ptmp->purpose = id; in X509_PURPOSE_add()
194 ptmp->trust = trust; in X509_PURPOSE_add()
195 ptmp->check_purpose = ck; in X509_PURPOSE_add()
196 ptmp->usr_data = arg; in X509_PURPOSE_add()
205 if (!sk_X509_PURPOSE_push(xptable, ptmp)) { in X509_PURPOSE_add()
213 OPENSSL_free(ptmp->name); in X509_PURPOSE_add()
214 OPENSSL_free(ptmp->sname); in X509_PURPOSE_add()
215 OPENSSL_free(ptmp); in X509_PURPOSE_add()