Constify getseckeys and modify it documentation to indicate the need fo freeing the returned pointer