BUF_LEFT
if (BUF_LEFT < sizeof(keystr))
len = b64_ntop(key, key_len, bp, BUF_LEFT);
if (BUF_LEFT < 2)
memset(bp, 0, BUF_LEFT);