-void *
-sslRealloc(void *oldPtr, size_t oldLen, size_t newLen)
-{
- /* _REALLOC is in sys/malloc.h but is only exported in debug kernel */
- /* return _REALLOC(oldPtr, newLen, M_TEMP, M_NOWAIT); */
-
- /* FIXME */
- void *newPtr;
- if(newLen>oldLen) {
- newPtr=sslMalloc(newLen);
- if(newPtr) {
- memcpy(newPtr, oldPtr, oldLen);
- sslFree(oldPtr);
- }
- } else {
- newPtr=oldPtr;
- }
- return newPtr;
-}
-