Lines Matching refs:asn1
150 ssl_asn1_t *asn1 = apr_hash_get(table, key, klen);
157 if (asn1) {
158 if (asn1->nData != length) {
159 free(asn1->cpData); /* XXX: realloc? */
160 asn1->cpData = NULL;
164 asn1 = ap_malloc(sizeof(*asn1));
165 asn1->source_mtime = 0; /* used as a note for encrypted private keys */
166 asn1->cpData = NULL;
169 asn1->nData = length;
170 if (!asn1->cpData) {
171 asn1->cpData = ap_malloc(length);
174 apr_hash_set(table, key, klen, asn1);
176 return asn1->cpData; /* caller will assign a value to this */
189 ssl_asn1_t *asn1 = apr_hash_get(table, key, klen);
191 if (!asn1) {
195 if (asn1->cpData) {
196 free(asn1->cpData);
198 free(asn1);